Skip to content

Commit

Permalink
[p.sh] Enable cronjobs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Jul 9, 2018
1 parent 5b4382d commit ddf654b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,15 @@ hooks:
find var/cache/prod -mindepth 1 -maxdepth 1 -type d \! \( -name "$PLATFORM_TREE_ID" \) -exec rm -rf '{}' \;
# The configuration of scheduled execution.
# see http://symfony.com/doc/current/components/console/introduction.html
#crons:
# symfony:
# spec: "*/20 * * * *"
# cmd: "php bin/console ezpublish:cron:run"
# see https://docs.platform.sh/configuration/app/cron.html#cron-jobs
crons:
minute:
# NOTE: Platform.sh PS does not execute every minute, so might sometimes miss jobs scheduled for a given time
spec: "* * * * *"
cmd: "php bin/console ezplatform:cron:run"
weekly:
spec: "0 0 * * 0"
cmd: "php bin/console ezplatform:check-urls"

runtime:
extensions:
Expand Down

0 comments on commit ddf654b

Please sign in to comment.