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? :|

link|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 :| – Mladjan Antic 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
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.