Skip to content

Commit c5dc799

Browse files
committed
use same cron as on website
1 parent 4bdc378 commit c5dc799

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.platform.app.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ web:
4242
# robots.txt.
4343
- /robots\.txt$
4444

45-
crons:
46-
reset:
47-
# reset the demo every night to avoid overflowing disks and data leftovers
48-
spec: 30 2 * * *
49-
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'
45+
cron:
46+
symfony:
47+
spec: '0 1 * * *'
48+
cmd: |
49+
# force clearing the cache
50+
rm -rf app/cache/prod
51+
bin/console --env=prod doctrine:phpcr:init:dbal --drop --force
52+
bin/console --env=prod doctrine:phpcr:repository:init
53+
bin/console --env=prod doctrine:phpcr:fixtures:load -n
54+
bin/console --env=prod cache:warmup -n --no-debug
5055
5156
# The size of the persistent disk of the application (in MB).
5257
disk: 2048

0 commit comments

Comments
 (0)