From cbeb91fb648bcdc6ebcbaec3754c76da9cdbda76 Mon Sep 17 00:00:00 2001 From: afornerot Date: Tue, 3 Mar 2020 11:03:18 +0100 Subject: [PATCH] exec command postservice en mode prod --- src/ninegate-1.0/scripts/ninegate-postservice-01.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ninegate-1.0/scripts/ninegate-postservice-01.sh b/src/ninegate-1.0/scripts/ninegate-postservice-01.sh index 5c9f5eda..6d156e6a 100755 --- a/src/ninegate-1.0/scripts/ninegate-postservice-01.sh +++ b/src/ninegate-1.0/scripts/ninegate-postservice-01.sh @@ -32,6 +32,7 @@ fi # Installation des dépendances composer composer install +rm -f /var/www/html/ninegate/var/logs/dev.log # Permissions ./perm.sh www-data @@ -44,12 +45,12 @@ php bin/console cache:clear --env=prod --no-debug php bin/console doctrine:schema:update --force --env=prod --no-debug # Insertion data de base -php bin/console Core:InitData -php bin/console Cron:InitData -php bin/console Portal:InitData +php bin/console Core:InitData --env=prod +php bin/console Cron:InitData --env=prod +php bin/console Portal:InitData --env=prod # Generation des assets -bin/console --env=dev assetic:dump +bin/console assetic:dump --env=prod # Copie des polices du projet dans le rep web cp -rf src/Cadoles/CoreBundle/Resources/public/fonts web/