Merge pull request #5686 from consuldemocracy/delayed_job_bundle_exec

Use bundle exec to run delayed jobs on reboot
This commit is contained in:
Javi Martín
2024-09-18 14:29:15 +02:00
committed by GitHub

View File

@@ -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