Skip to content

Commit

Permalink
Merge pull request #389 from symfony-cmf/add_cron
Browse files Browse the repository at this point in the history
[DO NOT MERGE] use same cron as on website
  • Loading branch information
ElectricMaxxx authored Oct 17, 2017
2 parents 4bdc378 + c5dc799 commit 047db66
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ web:
# robots.txt.
- /robots\.txt$

crons:
reset:
# reset the demo every night to avoid overflowing disks and data leftovers
spec: 30 2 * * *
cmd: 'bin/console cache:clear --env=prod && bin/console doctrine:phpcr:init:dbal --drop --force -n && bin/console doctrine:phpcr:repository:init -n && bin/console doctrine:phpcr:fixtures:load -n && bin/console --env=prod cache:warmup -n --no-debug'
cron:
symfony:
spec: '0 1 * * *'
cmd: |
# force clearing the cache
rm -rf app/cache/prod
bin/console --env=prod doctrine:phpcr:init:dbal --drop --force
bin/console --env=prod doctrine:phpcr:repository:init
bin/console --env=prod doctrine:phpcr:fixtures:load -n
bin/console --env=prod cache:warmup -n --no-debug
# The size of the persistent disk of the application (in MB).
disk: 2048
Expand Down

0 comments on commit 047db66

Please sign in to comment.