Last active
June 23, 2017 21:39
-
-
Save cwhite92/e284694399991ca823a0aaa53fd6408c to your computer and use it in GitHub Desktop.
.ebextensions cronjob.config
This file contains 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
files: | |
"/etc/cron.d/scheduler": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
#* * * * * root docker run --rm -v /var/app/current:/var/www/html 132274109557.dkr.ecr.eu-west-1.amazonaws.com/yourproject/artisan:latest schedule:run >> /dev/null 2>&1 | |
container_commands: | |
001-uncomment-cron: | |
leader_only: true | |
command: "sed -i -e 's/#//' /etc/cron.d/scheduler" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment