Have you tried starting god like so:

RAILS_ENV=whatever god -c /my_god.conf

I recall having some strange stuff go down with environment variables
and god because of the way it forks.  Worst case scenario, you could
hardcode some logic to call `hostname` or look for a file that tells
you you're in staging...

If the staging environment is on a different box than production, you
could have a global god config like this:

ENV['RAILS_ENV'] = 'staging'
God.load('/var/conf/god/*.conf')

Goodluck,

Chris


On Fri, Oct 17, 2008 at 4:26 PM, Pierre Olivier Martel
<[EMAIL PROTECTED]> wrote:
>
> Thanks for the help Chris but I would also like to be able to run God
> on the staging server. I was hoping there is a way to pass the
> environment as a parameter from the command line.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"god.rb" 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/god-rb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to