From 94afc89301333994ada52f87fc806f2d1b1ea841 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 29 Jan 2021 12:23:18 +0100 Subject: [PATCH] Fix --- check_process | 2 +- scripts/upgrade | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index 4f8440e..a75cdc3 100644 --- a/check_process +++ b/check_process @@ -6,7 +6,7 @@ ;; Test complet ; Manifest domain="domain.tld" (DOMAIN) - path="/" (PATH) + path="/path" (PATH) language="fr" is_public=1 (PUBLIC|public=1|private=0) ; Checks diff --git a/scripts/upgrade b/scripts/upgrade index 364bb79..5fc46a6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -95,6 +95,24 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config --package="$extra_php_dependencies" +#================================================= +# INSTALL AND INITIALIZE COMPOSER +#================================================= +ynh_script_progression --message="Installing Composer..." --weight=10 + +# Install Composer +ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--no-dev" + +if [ "$upgrade_type" == "UPGRADE_APP" ] +then + ynh_script_progression --message="Upgrading source files..." --weight=4 + pushd $final_path + php$phpversion artisan migrate + php$phpversion artisan cache:clear + php$phpversion artisan view:clear + popd +fi + #================================================= # GENERIC FINALIZATION #=================================================