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
| # run with: god -c /path/to/config.god [add -D if you want to not-deamonize god] | |
| # This is the actual config file used to keep the delayed_job running | |
| APPLICATION_ROOT = "/var/www/application" | |
| RAILS_ENV = "production" | |
| God.watch do |w| | |
| w.name = "delayed_job_production" | |
| w.interval = 15.seconds | |
| w.start = "/bin/bash -c 'cd #{APPLICATION_ROOT}/current; /usr/bin/env RAILS_ENV=#{RAILS_ENV} #{APPLICATION_ROOT}/current/script/delayed_job start > /tmp/delay_job.out'" |
NewerOlder