20 minutes to setup production rails / Installing gems with ruby enterprise
I started moving an app over to slicehost today, and was impressed with how fast it is now.
I used josh’s slicehost cap recipes
The one hangup was that passenger initially gave me a cryptic error screen. It was pretty easy to figure out what the issue was though (db password).
On Ubuntu, passenger will log startup errors to /var/log/apache2/error.log
Second, passenger gives an error screen if you don’t have gems installed.
So, the thing to do was setup all the gems for ruby enterprise, there is a script to install them into ruby enterprise here
If you want to install gems by themselves later, you can use:
1 2 3 4 5 |
sudo /opt/ruby-enterprise-1.8.6-[version]/bin/gem install [gem name] e.g. sudo /opt/ruby-enterprise-1.8.6-20090113/bin/gem install image_science |
And, kabang, it all just works. So much easier than the hours it took me to do it a year ago.
January 28, 2009
