Skip to content

Commit

Permalink
Merge pull request #191 from tomudding/feature/cronjobs
Browse files Browse the repository at this point in the history
Add cronjobs to prepare for deployment
  • Loading branch information
tomudding authored Aug 9, 2022
2 parents 8c4bf33 + a17e38a commit 602bc94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/web/development/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
# │ │ │ │ │
# * * * * * command to execute
# Don't remove the empty line at the end of this file. It is required to run the cron job
0 1 * * * { . /code/config/bash.env && /usr/local/bin/php /code/web report:generate:full; } > /code/data/logs/cron-report-partial.log 2>&1
0 0 * 6 * { . /code/config/bash.env && /usr/local/bin/php /code/web check:membership:tue; } > /code/data/logs/cron-check-tue.log 2>&1
0 0 1 7 * { . /code/config/bash.env && /usr/local/bin/php /code/web check:membership:expiration; } > /code/data/logs/cron-check-expiration.log 2>&1
0 0 1 7 * { . /code/config/bash.env && /usr/local/bin/php /code/web check:membership:type; } > /code/data/logs/cron-check-type.log 2>&1
4 changes: 4 additions & 0 deletions docker/web/production/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
# │ │ │ │ │
# * * * * * command to execute
# Don't remove the empty line at the end of this file. It is required to run the cron job
0 1 * * * { . /code/config/bash.env && /usr/local/bin/php /code/web report:generate:full; } > /code/data/logs/cron-report-partial.log 2>&1
0 0 * 6 * { . /code/config/bash.env && /usr/local/bin/php /code/web check:membership:tue; } > /code/data/logs/cron-check-tue.log 2>&1
0 0 1 7 * { . /code/config/bash.env && /usr/local/bin/php /code/web check:membership:expiration; } > /code/data/logs/cron-check-expiration.log 2>&1
0 0 1 7 * { . /code/config/bash.env && /usr/local/bin/php /code/web check:membership:type; } > /code/data/logs/cron-check-type.log 2>&1

0 comments on commit 602bc94

Please sign in to comment.