nesquena / backburner

Simple and reliable beanstalkd job queue for ruby
http://nesquena.github.com/backburner
MIT License
429 stars 69 forks source link

Run backburner in production mode #65

Closed Ahmed--Mohsen closed 9 years ago

Ahmed--Mohsen commented 10 years ago

When I ran the following command backburn ran in development mode instead of production bundle exec backburner -q newsletter-sender,push-notifier -d -P /var/run/backburner.pid -l /var/log/backburner.log RAILS_ENV=production How to specify the environment?

vad4msiu commented 10 years ago

Try run so: RAILS_ENV=production bundle exec backburner -q newsletter-sender,push-notifier -d -P /var/run/backburner.pid -l /var/log/backburner.log

contentfree commented 9 years ago

Once #101 is merged in, you will be able to provide -e production

contentfree commented 9 years ago

@vad4msiu's suggestion would've worked. Now that #101 has been merged into master, you are also able to use the -e switch to control the environment (for Rails and Padrino apps) for the CLI. @Ahmed--Mohsen: Please confirm and close the issue.

Ahmed--Mohsen commented 9 years ago

Confirmed