Created
March 6, 2014 13:11
-
-
Save ciastek/9389264 to your computer and use it in GitHub Desktop.
delayed_job + upstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Start up app's delayed_job" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
script | |
exec sudo -u rate bash -c 'export RAILS_ENV=production && cd /var/www/app/current && ./script/delayed_job start' | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment