I must be doing something stupid.
I’m trying to use Passenger to deploy my app on Apache. I get the static 500 error page from rails unless I add
RailsEnv production
to my Virtual Host file.
Here is the working file:
<VirtualHost *:80>
ServerName ror.weaponxo.com
DocumentRoot /home/ubuntu/Development/test_app/public
RailsEnv development
<Directory /home/ubuntu/Development/test_app/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
Do I need to somehow tell rails that the environment is production?
I can’t find where log messages are sent either, so debugging has been near impossible. Here’s a related question I asked https://stackoverflow.com/questions/9243272/passenger-ruby-on-rails-issues
Thanks
I’m using Rails 3.2.1, Apache2, Ubuntu 10.04
I assume you are using the rails asset pipeline? If so, make sure to run
on your deployed app. For more information, please have a look here: http://guides.rubyonrails.org/asset_pipeline.html#precompiling-assets