-
-
Save nickhoffman/bac84614e823361e2eb6 to your computer and use it in GitHub Desktop.
This file contains 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
start on starting domain.com-resque_worker | |
stop on stopping domain.com-resque_worker | |
respawn | |
exec su - nick -c 'cd /data/web/domain.com/production/current/config/foreman_procfiles; export PORT=5000; RAILS_ENV=production bundle exec rake resque:work VERBOSE=1 QUEUE=* >> /data/web/domain.com/production/shared/log/resque_worker-1.log 2>&1' |
This file contains 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
start on starting domain.com | |
stop on stopping domain.com |
This file contains 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
pre-start script | |
bash << "EOF" | |
mkdir -p /data/web/domain.com/production/shared/log | |
chown -R nick /data/web/domain.com/production/shared/log | |
EOF | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment