I've deployed my site to its testing location, but I'm not sure where I set what the RAILS_ENV
should be for this server. Where should I look?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- Rails how to handle error and exceptions in model
You can use
rack_env
directive to set the rails env as described here in passenger for nginx documentation6.16. Rack and Rails >= 3 specific options
If you are on rails 1.x or 2.x, you can use
rails_env
directiveShort Answer: passenger_app_env development;
Sets: RAILS_ENV RACK_ENV WSGI_ENV NODE_ENV PASSENGER_APP_ENV
Example nginx conf: