Closed Ahmed--Mohsen closed 9 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
Once #101 is merged in, you will be able to provide -e production
@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.
Confirmed
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?