Jason wrote:
> Hi all,
> I have enki running locally, and having been looking through the
> code. this is my rails learning experience, and i'm learning quite a
> bit. my problem is switching from development to production. this
> should be fairly simple, but i cannot figure it out. i have a server
> setup on linode, and i'm running passenger. will passenger switch
> modes, or do i need to do this.
From the passenger user's guide:
http://www.modrails.com/documentation/Users%20guide.html#rails_env
5.8.4. RailsEnv <string>
This option allows one to specify the default RAILS_ENV value.
This option may occur once, in the global server configuration or in a
virtual host configuration block. The default value is production.
I run my own VPS, here is an extract from my httpd.conf (it's pretty
standard - though I really shouldn't have it installed in tmp long term)
LoadModule passenger_module /tmp/passenger/ext/apache2/mod_passenger.so
PassengerRoot /tmp/passenger
PassengerRuby /usr/local/bin/ruby18
NameVirtualHost *:80
<VirtualHost *:80>
ServerName ausnom.com
ServerAlias www.ausnom.com
DocumentRoot /home/xavier/app/ausnom/current/public
RackEnv production
</VirtualHost>
<VirtualHost *:80>
ServerName rhnh.net
ServerAlias www.rhnh.net
DocumentRoot /home/xavier/app/rhnh-enki/current/public
</VirtualHost>