Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commands:
- create_post_dir:
- command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
- ignoreErrors: true
- files:
- "/opt/elasticbeanstalk/hooks/appdeploy/post/99_restart_delayed_job.sh":
- mode: "000755"
- owner: root
- group: root
- content: |
- #!/usr/bin/env bash
- . /opt/elasticbeanstalk/support/envvars
- cd $EB_CONFIG_APP_CURRENT
- su -c "RAILS_ENV=production script/delayed_job --pid-dir=$EB_CONFIG_APP_SUPPORT/pids restart" $EB_CONFIG_APP_USER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement