Skip to content

Commit

Permalink
Merge pull request Novactive#16 from Novactive/fix-deploy-update
Browse files Browse the repository at this point in the history
updated cron job to clear cache frequency
  • Loading branch information
Plopix committed Feb 4, 2019
2 parents 812b84f + 05a6392 commit 5248737
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .platform.app.yaml
Expand Up @@ -8,7 +8,7 @@ relationships:
database: 'mysqldb:user'
variables:
env:
SYMFONY_ENV: prod
SYMFONY_ENV: dev
web:
locations:
"/":
Expand All @@ -33,9 +33,9 @@ hooks:
deploy: |
set -e
cd ezplatform
#bin/console ezplatform:install clean
#bin/console novaezmailing:install
#bin/console doctrine:fixtures:load --no-interaction
bin/console ezplatform:install clean
bin/console novaezmailing:install
bin/console doctrine:fixtures:load --no-interaction
mv var/cache/$SYMFONY_ENV var/cache/oldcache
bin/console cache:clear
post_deploy: |
Expand All @@ -53,5 +53,5 @@ crons:
spec: '18 * * * *'
cmd: 'cd ezplatform && bin/console novaezmailing:send:mailing'
removecache:
spec: "0 2 * * *"
spec: "0 */1 * * *"
cmd: "rm -rf ezplatform/var/cache/dev && rm -rf ezplatform/var/cache/prod"

0 comments on commit 5248737

Please sign in to comment.