Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. container_commands:
  2. # check for environemt within command to use leader flag
  3. 01_portfolio_update_cron_job:
  4. command: 'if [ "$SYMFONY_ENV" != "staging" ]; then cat .ebextensions/cronjobs/portfolio_cron_job.txt > /etc/cron.d/portfolio_cron_job && chmod 644 /etc/cron.d/portfolio_cron_job; else echo "dont include portfolio cron";fi'
  5. leader_only: true
  6. # command should run on all instances, we can use the test command for environment check
  7. 02_synch_cron_job:
  8. command: cat .ebextensions/cronjobs/synch_cron.txt > /etc/cron.d/synch_cron && chmod 644 /etc/cron.d/synch_cron
  9. test: '[ "$SYMFONY_ENV" == "develop" ]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement