From 511ad729564af35322e9ce97bc1ba0bf2c2f322e Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sun, 17 Jun 2018 19:15:50 +0530 Subject: [PATCH] Fixed restore --- scripts/restore | 1 + scripts/upgrade | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index 89bcf9f..2fb2a31 100755 --- a/scripts/restore +++ b/scripts/restore @@ -102,6 +102,7 @@ ynh_restore_file "/etc/php/7.1/conf.d/20-$app.ini" #================================================= # SPECIFIC UPGRADE #================================================= +init_composer $final_path cd $final_path && sudo /usr/bin/php7.1 artisan migrate --env=production --force cd $final_path && sudo /usr/bin/php7.1 artisan cache:clear cd $final_path && sudo /usr/bin/php7.1 artisan firefly:upgrade-database diff --git a/scripts/upgrade b/scripts/upgrade index 43675a5..c3e7ceb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,9 +103,6 @@ cp -a "$tmpdir/storage/export/*" "$final_path/storage/export/" #remove tmp dir sudo rm -Rf "$tmpdir" -exec_composer "$final_path" update --quiet --no-scripts --no-dev -exec_composer "$final_path" update --quiet --no-dev - #================================================= # NGINX CONFIGURATION #=================================================