Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorb2ss/824713128f0b95645164d814088e6be2 to your computer and use it in GitHub Desktop.
Save juniorb2ss/824713128f0b95645164d814088e6be2 to your computer and use it in GitHub Desktop.
Cronjob ElasticBeantalk
commands:
create_post_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/99_create_cron_jobs.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
echo "* * * * * . /opt/elasticbeanstalk/support/envvars && /usr/bin/php /var/www/html/artisan schedule:run >> /dev/null 2>&1" > /tmp/crontab
crontab /tmp/crontab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment