How to automatically restart delayed_job when deploying a rails project on Amazon Elastic Beanstalk?
问题 I'm hosting a rails project on Amazon Elastic Beanstalk and I try to configure a container command to automatically restart my delayed_job worker on the server after each deployment. I tried with this one : container_commands: restartdelayedjob: command: "RAILS_ENV=production script/delayed_job --pid-dir=/home/ec2-user/pids start" cwd: /var/app/current But, it seems that the pushed version is deployed after the restarting of the worker so the jobs failed to be processed by the worker. When I