Merge pull request #5686 from consuldemocracy/delayed_job_bundle_exec
Use bundle exec to run delayed jobs on reboot
This commit is contained in:
@@ -37,5 +37,5 @@ end
|
||||
|
||||
every :reboot do
|
||||
# Number of workers must be kept in sync with capistrano's delayed_job_workers
|
||||
command "cd #{@path} && RAILS_ENV=#{@environment} bin/delayed_job -m -n 2 restart"
|
||||
command "cd #{@path} && RAILS_ENV=#{@environment} bundle exec bin/delayed_job -m -n 2 restart"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user