On Tue, Jan 5, 2010 at 12:28 PM, Johan Sørensen <[email protected]> wrote: > On Wed, Dec 30, 2009 at 5:03 PM, Benjamin Podszun > <[email protected]> wrote: >> emails. I changed config/environments/production.rb to define > [...] >> The problem? The poller script doesn't adhere to the rails >> configuration above. I "fixed" it, being completely ignorant about the >> language, by changing script/poller to include > > Make sure you start it in the correct environment, eg: > $ env RAILS_ENV=production script/poller ... > > I think the poller defaults to the development environment, whereas > the others default to production..
Hi Johan. Thanks again, but I think I'm doing exactly that. Quoting from my previous mails: For reference: This is my /etc/init.d/git-poller init script: /bin/su - git -c "cd /var/www/git.devtools/gitorious; RAILS_ENV=production script/poller $@" Am I missing a typo in there? In addition: It works if I include the (global, residing in config/) boot.rb. I'm not directly including any environments/*.rb file, so somehow it seems to pick up my environments/production.rb on its own (which I assume means that the right environment is selected?). Regards, Ben -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
