On Tue, Aug 4, 2009 at 12:26 AM, Craig White<[email protected]> wrote:
> Was there somewhere inside the rails root that I was supposed to tell
> Rails to use production instead of development?
Assuming you are using passenger with apache, the RailsEnv directive,
which should go in the apache vhost configuration tells passenger
which rails environment to run under.
e.g.
<VirtualHost *:80>
ServerName yourhostname.com
DocumentRoot "/path/to/your/rails/app/public"
RailsEnv production
<directory "/path/to/your/rails/app/public">
Order allow,deny
Allow from all
</directory>
I haven't used passenger with Nginx, but there's probably something similar.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---