This weekend I tried to configure the Rails 3.0.4 application on a shared Dreamhost server. I followed this wiki article to have my own set of rubygems settings on the server. In addition, I also installed rvm and ruby 1.9.2 using the following command:
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
Running ruby -v returns ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] , so I believe rvm installed the ruby version correctly.
I created my application that started the mysql database and then generated an article controller:
rails new test_app -d mysql cd test_app rails g scaffold articles title:string body:text
Now, when I visit the domain, I see the usual "Welcome aboard Youre, back on Ruby on Rails!" screen, but if I click on the "About your application environment" link, I get what looks like my passenger’s error:
The Ruby (Rack) application cannot be started. The application exited at launch time (i.e. during evaluation of config / environment.rb). The error message may have been written to the web server log file. Check the web server log file (i.e. the Rails application log file) to find out why the application exited. If this does not help, use the tip below to debug the problem.
Finally, if I find SSH on the server and just do rails s , I can see how the application works correctly on port 3000.
I have never added an application to production before, so I'm very confused. Does the passenger really not use the RVM version of the ruby? Is this possible on a shared DreamHost server? What do I need to do to fix this problem?
Any help is appreciated, thanks.