Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have SnowLeopard Server on MacMini, and apache2 preinstalled on it.

I installed Passenger Phusion for Apache and that works, but I figured out based on my logs (only development log is filled with content) and database configuration that my Rails 3 app works in development mode on server.

I tried to configure in VirtualHost block RAILS_ENV variable, but result is the same.

What to do to make this to work in production mode? :|

share|improve this question
RAIL_ENV? or RAILS_ENV? ... that being said... if it wasn't already defined... it defaults to production anyway. Are you sure you don't have a .htaccess someplace overriding it? or perhaps something else? –  TheCompWiz Apr 11 '11 at 20:18
RAILS_ENV, that was typo. I don't have .htaccess :| –  Passenger Apr 11 '11 at 20:23
All I can say is that something is overriding the default behavior. Have you modified any of the boot.rb or environment.rb or anything else? –  TheCompWiz Apr 11 '11 at 20:54
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.