Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.
1
vote
1answer
429 views
Linode Debian + rvm + nginx + Unicorn kills master at boot or doesn't start unicorn
I'm a new Linode/Linux user running Debian 6. I'm trying to get my Unicorn server to start at boot, but for some reason it is not, and I'm not able to track down any error message. Nginx is starting ...
1
vote
1answer
418 views
Problems with .htaccess rewrite and Ruby on Rails/Redmine
I installed Redmine and so far everything runs smoothly.
Now i want to add a rewrite rule via .htaccess in order to redirect requests from domain.tdl to www.domain.tdl.
This is approach works fine ...
1
vote
1answer
98 views
Changing the $PATH for _www apache2 user on Mac OS X
After several maddening hours of trying to get Redmine working on Snow Leopard, I finally realized that it was trying to access the system-wide Ruby/Rails install in /System/Library/Frameworks rather ...
1
vote
1answer
178 views
How do I install Rake (Ruby on Rails)?
I want to install Ruby on Rails (I'm running a FreeBSD but don't want to use Ports for RoR) so this is a more generic unix/RoR question.
Simply what is the best way to install Rake.
...
1
vote
1answer
212 views
Post requests failing intermittently on a particular network route ~ wtf?
This is a complete head-scratcher.
I've got a Rails application running on Passenger.
I've tested the services from several different clients (via curl) and found them performing perfectly. EXCEPT ...
1
vote
1answer
234 views
Gitorious error on create_admin
I am following http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server to install gitorious with ruby1.9 installed via rvm. When i try to create admin user i get:
$ env ...
1
vote
1answer
203 views
How can I trace performance problems in an Ubuntu / Apache / MySQL / Rails + Passenger stack?
I have performance issues with a Rails stack that is running Apache 2.2.9, MySQL 5.1, Passenger 2.2.9 and Rails 2.3.8 (ruby 1.8.7-p72) on an Ubuntu 8.04 server.
How can I trace performance issues in ...
1
vote
1answer
405 views
Rails application proxy'ed by Apache not serving CSS, Javascript and Images
We deployed a Rails application on a backend server, served via Passenger. This application is served at port 9000, and is configured to use sub_uri. Originally the URL is http://ip.address:9000/, and ...
1
vote
1answer
432 views
Apache/Passenger: not following PassengerMaxPoolSize/PassengerMaxInstancesPerApp?
If I'm correct when I think that a line of
30193 ramon 16 0 170M 119M 3628 S 0.0 11.6 0:08.47 Rack: /var/www/salcedoauctions/current
in htop means that there's one spawn of the ...
1
vote
1answer
457 views
What's the best strategy for log rotation with apache+passenger+ruby-on-rails+mysql?
(Hope I have the right SE site for this question, apologies if not.)
I have a Ruby-on-Rails application that is deployed using Apache+mod_rails (passenger). It uses MySQL for the database backend. ...
1
vote
1answer
213 views
ruby on rails server is intermittently slow
My rails installation was chugging along nicely. Last night we had to perform a hot-patch with was really a standard deploy of some exception code. Once capistrano finished the operation one of our ...
1
vote
1answer
164 views
Access Rails under /app/, not /app/public/
I'm trying to deploy Rails 2.1.2 with Apache 2.2.10 and FastCGI (yeah, bad, ancient, ugly, I know).
My application can be accessed via example.com/app/public/, but I want to access it via ...
1
vote
1answer
132 views
continuous integration — github — integrity
I am actually trying to configure integrity as my CI. I have added a project and clicked on build manually......
the output was
sh: line 0: cd:
/home/www-data/integrity/builds/--master:
No ...
0
votes
1answer
22 views
How to configure http.conf without a ServerName?
I've the following example given to me to set up rails on CentOS with apache / passenger:
<virtualhost *:80>
RailsEnv development
ServerName app.com
ServerAlias www.app.com
DocumentRoot ...
0
votes
1answer
31 views
Uninstall Ruby on Rails on CentOS 6
How can I remove Ruby on Rails and all associated gems?
I tried yum remove ruby but get this response:
yum remove ruby
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for ...
0
votes
1answer
17 views
Migrate Rails app with passenger, capistrano(with rubber), and ImageMagick to Dreamhost
I have a beta app that a developer has made for my company and I need to clone their work onto another server.
I have successfully backed up the MySQL database to another server and copied all their ...
0
votes
1answer
52 views
Multiple Rails/Rack apps Nginx one for each subdomain
I just hired a VPS with Ubuntu 12.10 x64. I've managed to get one Rails app running with passenger-nginx. Now I want to run another app as a subdomain, say for example admin.mydomain.com. How can I do ...
0
votes
1answer
38 views
Scaling Rails 2.x application with more app servers
I'm thinking of a setup for our rather popular website to be able to scale on the CPU side of things. We are running quite a few CPU intensive image conversion jobs at random times (user input) and ...
0
votes
1answer
35 views
Pass on passenger_base_uri to Rails app
We built a Rails app that consists of the following routes:
namespace :api do
namespace :v1 do
resources ...
end
end
That means, all controllers are reachable via ...
0
votes
1answer
158 views
Nginx + Unicorn Rails Application gets 404 when requests number are high
I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
0
votes
1answer
71 views
problems with nginx and serving ssl; possible certificate issue
I have a site that I haven't launched yet that is running all http traffic on production over ssl. The problem is that if a call is made to https://www.domain.com/homepage.html , there is also a call ...
0
votes
1answer
223 views
Problems set-up Single Sign-On using Kerberos authentication
I need for Ruby on Rail application set authentication via Active Directory using Kerberos authentication.
Some technical information:
I are using Apache
installed mod_auth_kerb
In httpd.conf I ...
0
votes
1answer
219 views
No data received - Passenger, (52) Empty reply from server
I had setup Elastic Beanstalk for my rails application last month (Passenger).
All was good.. but all of a sudden, my servers are not responding well.
My application access gives 'No data received - ...
0
votes
1answer
64 views
rails-boilerplate (0.1.9) gem mirror
Using paperclip (3.2.0)
Using polyamorous (0.5.0)
Using pr_geohash (1.0.0)
Using slop (3.3.3)
Using pry (0.9.10)
Using pry-rails (0.2.2)
Gem::RemoteFetcher::FetchError: too many ...
0
votes
1answer
92 views
Unicorn, USR2 and the config file
My Bash script has the following code that doesn't throw an error.
echo "Reloading Unicorn if USR2 is enabled"
kill -USR2 `cat $PID`
if [ -s $OLD_PID ]
then
kill -WINCH `cat $OLD_PID` && kill -QUIT ...
0
votes
1answer
435 views
Error installing new rails version. Failed to build gem native extension
I am trying to build my first ruby on rails app using the following guide (http://ruby.railstutorial.org/chapters/a-demo-app#code-demo_gemfile_sqlite_version_redux) and have run into a few obstacles. ...
0
votes
1answer
305 views
500 error with deploying rails application via apache2+passenger
I finally completed my own app, so the only work left is deploying the app.
I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger.
I installed passenger ...
0
votes
1answer
195 views
Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)
I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem.
I have several Rack (ruby)-based apps, located in
...
0
votes
1answer
351 views
How do i set a cronjob to use less CPU
I'm managing a server witch host several ruby on rails websites.
I need a cron job for every website that does :
send emails (notifications)
create thumbnails
Unfortunatly, every time the cron is ...
0
votes
1answer
87 views
PostgreSQL 9.1 won't restore because “a user is connected”
I'm transferring a database as part of transferring a website. I've not used PostgreSQL before, so assume that I don't know much about it (I primarily use MySQL). We cannot directly connect the ...
0
votes
1answer
287 views
Rails /tmp/cache/assets permissions issue using Debian virtual machine hosted on OS X Lion
I am running Parallels Desktop 7 on OS X Lion. I have a VM with Debian installed, and inside that VM I setup a Rails development environment. I am using Parallels Tools to share out my OS X home ...
0
votes
1answer
147 views
Stealing the thin ruby web server port to the world
I'm using a thin web server for my production ruby-on-rails app. I have a lighttpd frot-end for a 3 servers cluster.
Everything is ok, but all three servers are accessible from the outside world.
...
0
votes
1answer
103 views
NGINX on OSX Snow Leopard Server - extremely slow over network
I set up nginx to serve a rails application for our intranet. It runs on a osx server blade with snow leopard.
When I work on the server and go to localhost:8444 it runs very smooth and fast, but when ...
0
votes
1answer
38 views
Running application from a different directory
I currently have Redmine setup in /usr/share/redmine and I would like to keep /usr read only. I want to be able to run the application out of /srv/redmine. I am using the debian package. The location ...
0
votes
1answer
234 views
Nginx - Passenger - Rails 3.2 not responding
I am struggeling to get my rails 3.2 app running on a nginx - passenger - ruby 1.9.3 setup.
here is what I already did:
installed passenger gem
installed rvmsudo passenger-install-nginx-module
I ...
0
votes
1answer
201 views
Apache/Passenger and cpulimit
I run a ruby on rails site that processes email - the email is dumped directly into the web app via a POST from postfix.
At times I can get a burst of email coming in causing a prolonged surge in ...
0
votes
1answer
137 views
Ruby Passeger + Nginx or lighthttpi + fgci for shared hosting
I have set up a passenger + nginx setup and I plan to offer a free non-commercial hosting (or in fact on the fly deployment) for rack-based frameworks (e.g. camping, sinatra).
I am facing an "issue" ...
0
votes
1answer
251 views
Nginx + Passenger = Slow response
I'm running nginx 1.0.4 with Passenger 3.0.11 and Rails applications and I've noticed that on every request I made, it takes about 5 seconds to respond for the first request, if I reload it, after the ...
0
votes
1answer
323 views
Configuring Virtual Hosts - nginx and passenger phusion on Ubuntu
I was able to successfully configure nginx and passenger phusion. I now have the following configuration
server {listen 80 server_name **sub1.example.com** root /home/user/app1/public }
server ...
0
votes
1answer
194 views
Rails application dying slowly on Mac Lion 10.7.2 with Phussion
I've asked this question over at stackoverflow, but I thought someone here might have insight as well.
I've recently deployed my first Rails application on a Mac mini running Lion 10.7.2 with Apache ...
0
votes
1answer
139 views
ruby or rvm ruby in Production web server
Currently our production server runs in system ruby. Passenger handles our rails apps.
Should I move to handling my entire ruby stuff using rvm? What advantage can rvm give me in a production ...
0
votes
1answer
309 views
What do these Thin cache log entries mean?
I recently released a Rails 3.1 upgrade of my webapp. I power this app on an Unbuntu 10.04 VPS with Thin on the backend, Nginx on the front. To make my app work with the new Rails asset pipeline I ...
0
votes
1answer
121 views
PHP, Rails 2 and Rails 3 on the same server, on production mode
I am setting up a new web server (ubuntu 10.04 LTS), I want to get run on production mode: PHP, Rails 2.3.X and Rails 3, and each one should be accessible from diferent path, ex:
...
0
votes
1answer
385 views
How to install bundler gem on Hetzner server?
I am trying to install bundler using the following command:
gem install bundler
but recieve this error:
ERROR: could not find gem bundler locally or in a repository
Running command
gem list ...
0
votes
1answer
125 views
mod_rewrite rules for non-default page cache directory for Rails application with distinction between mobile directory and www directory
My Question is similar (almost the same) to another question asked here: but with a twist.
Does anybody have some working Apache mod_rewrite rules that enable
Phusion Passenger (mod_rails) to ...
0
votes
1answer
156 views
Which Ruby server for an app with lots of file uploads?
I'm currently building an application that will handle quite a lot of file uploads (images, so a few MB each). It'll also be handling mostly JSON requests on the frontend, behind a Javascript ...
0
votes
1answer
220 views
Solutions to deploy rails 3 app on cPanel shared host
I have a ruby on rails 3 app running on my local machine, and I'd like to deploy it onto a cPanel shared server now, where I have shell access. I know mongrel isn't supported as of now on cPanel, but ...
0
votes
1answer
324 views
How to use Passenger (apache2 module) with 2+ Rails apps using each one different gemsets
Let's suppose I want to host 2 rails apps in the same server. I'd use RVM (installed as multiuser) and two different gemsets; suppose gemsetA for appA and gemsetB for appB.
What's the best way to ...
0
votes
1answer
171 views
Phusion Passenger + Nginx - Architecture?
I'm using Phusion Passenger + nginx to deploy a rails app. So far, all is working fantastically.
However, I'm a little fuzzy around the architecture of passenger + nginx, and I would love to deepen ...
0
votes
1answer
400 views
Ruby/Passenger stops working after update to OpenSSL
Someone has run a yum update on the CentOS box (Linux 2.6.28.1-xxxx-std-ipv4-32 #2 SMP Fri Jan 30 09:55:02 UTC 2009 i686 i686 i386 GNU/Linux) that runs a Ruby on Rails app (Redmine) served with ...