From 8e023f1fecb1d57892a264e5591c5a6217037ac6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 18 May 2021 22:42:48 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7b5ec92..81ea78a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -144,12 +144,18 @@ ynh_install_composer --install_args="--ignore-platform-reqs" #================================================= ynh_script_progression --message="Upgrading Lychee source files..." --weight=4 -pushd $final_path - php$phpversion artisan key:generate -n --force --env - php$phpversion artisan migrate -n --force - php$phpversion artisan config:clear -n - php$phpversion artisan config:cache -n -popd +# pushd $final_path +# php$phpversion artisan key:generate -n --force --env +# php$phpversion artisan migrate -n --force +# php$phpversion artisan config:clear -n +# php$phpversion artisan config:cache -n +# popd + +ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" + +( cd $final_path && php$phpversion artisan migrate -n --force ) +( cd $final_path && php$phpversion artisan config:clear -n ) +( cd $final_path && php$phpversion artisan config:cache -n ) #================================================= # SECURE FILES AND DIRECTORIES