Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] use same cron as on website #389

Merged
merged 1 commit into from
Oct 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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