From d3031cd14aaa40a22d6abdf3be9e95cb7668a35d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 24 Jan 2021 16:00:44 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1d0067a..17f2a93 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,13 +114,13 @@ ynh_add_fpm_config --package="$extra_php_dependencies" ynh_script_progression --message="Installing Composer..." --weight=10 # Install Composer -ynh_install_composer -ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" +ynh_install_composer --phpversion="${YNH_PHP_VERSION}" --workdir="$final_path" --install_args="--prefer-source --no-dev" -( 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 ) +cd $final_path && php$phpversion artisan key:generate -n --force --env +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 ynh_backup_if_checksum_is_different --file="$final_path/.env" # Recalculate and store the checksum of the file for the next upgrade.