Re: Specifying Which Environment I Am In

John Baku
Thu, 17 Mar 2005 03:38:47 -0000

Do you know if by default on Textdrive the site is running on FastCGI
and if not I am assuming the below will not work unless I make the site
work on Fast CGI right?

On 16-Mar-05, at 10:18 PM, Tobias Luetke wrote:

> Yea thats the idea:
>
> http://wiki.rubyonrails.com/rails/show/FastCGI
>
> Switching to Production environment
>
> Rails default environment is development. If you are deploying your
> application on a live server, make sure to set the right flags! Simply
> add one of the following to your Apache server configuration file(s).
>
> # serverwide
> FastCgiConfig -initial-env RAILS_ENV=production -restart
>
> or just for a specific application:
>
> # just for one application
> FastCgiServer /var/www/applications/myapp/public/dispatch.fcgi
>    -initial-env RAILS_ENV=production
>
>
> On Wed, 16 Mar 2005 21:12:12 -0500, John Baku
<john-CC0oh5EnFfVBDgjK7y7TUQ@public.gmane.org> wrote:
>> After I have uploaded my app where do I specify that my app should now
>> use production environment settings and not development?
>>
>> Can that be done dynamically so that I don''t have to reset a
value
>> once
>> I upload website?
>>
>> Thanks for your help!
>>
>> _______________________________________________
>> Rails mailing list
>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
> --
> Tobi
> http://www.snowdevil.ca - Snowboards that don''t suck
> http://www.hieraki.org   - Open source book authoring
> http://blog.leetsoft.com - Technical weblog