Skip to content

Instantly share code, notes, and snippets.

@cwhite92
Last active June 23, 2017 21:39
Show Gist options
  • Save cwhite92/e284694399991ca823a0aaa53fd6408c to your computer and use it in GitHub Desktop.
Save cwhite92/e284694399991ca823a0aaa53fd6408c to your computer and use it in GitHub Desktop.
.ebextensions cronjob.config
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