From 885c39411753d457762f06acc748589c677e2403 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 5 Sep 2018 03:48:53 +0530 Subject: [PATCH] cd fix for update script --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index d75e20c..6ff30a1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,9 +77,11 @@ ynh_install_php7 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" init_composer_update $final_path +( cd $final_path && sudo /usr/bin/php7.2 bin/console cache:clear --env=prod cd $final_path && sudo /usr/bin/php7.2 bin/console cache:warmup --env=prod cd $final_path && sudo /usr/bin/php7.2 bin/console doctrine:migrations:migrate +) #================================================= # NGINX CONFIGURATION #=================================================