From 1c84b379619d706f098a920b4af89a3188a77f75 Mon Sep 17 00:00:00 2001 From: SylvainGuittard Date: Tue, 29 Aug 2017 09:52:53 -0400 Subject: [PATCH] EZP-27499: Update platform.sh hooks for v2.x Closes #204 --- .platform.app.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.platform.app.yaml b/.platform.app.yaml index eb10a6a7..b6b945b5 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -36,9 +36,11 @@ disk: 2048 # The mounts that will be performed when the package is deployed. mounts: - "/app/cache": "shared:files/cache" - "/app/logs": "shared:files/logs" + "/var/cache": "shared:files/cache" + "/var/logs": "shared:files/logs" "/web/var": "shared:files/files" + # Might want to not mount this one, it will slow down sessions, if you need cluster use memcached/redis! + "/var/sessions": "shared:files/sessions" # The hooks that will be performed when the package is deployed. hooks: @@ -61,10 +63,10 @@ hooks: export SYMFONY_ENV=prod fi if [ ! -f web/var/.platform.installed ]; then - php -d memory_limit=-1 app/console ezplatform:install --env=$SYMFONY_ENV $INSTALL_EZ_INSTALL_TYPE + php -d memory_limit=-1 bin/console ezplatform:install --env=$SYMFONY_ENV $INSTALL_EZ_INSTALL_TYPE touch web/var/.platform.installed fi - app/console --env=$SYMFONY_ENV cache:clear + bin/console --env=$SYMFONY_ENV cache:clear # The configuration of scheduled execution. # see http://symfony.com/doc/current/components/console/introduction.html