Permalink
Browse files

Merge pull request Novactive#16 from Novactive/fix-deploy-update

updated cron job to clear cache frequency
  • Loading branch information...
Plopix committed Feb 4, 2019
2 parents 812b84f + 05a6392 commit 5248737d25a6a74b4fa03cbe72d8204e66312e8f
Showing with 5 additions and 5 deletions.
  1. +5 −5 .platform.app.yaml
@@ -8,7 +8,7 @@ relationships:
database: 'mysqldb:user'
variables:
env:
SYMFONY_ENV: prod
SYMFONY_ENV: dev
web:
locations:
"/":
@@ -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: |
@@ -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.