From 70cf2ec50a712765e55a2ff6bd33e1c933345838 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 7 Apr 2022 15:59:53 +0200 Subject: [PATCH] Fix --- conf/.env.example | 4 ++-- scripts/_common.sh | 4 ++-- scripts/upgrade | 9 +++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/conf/.env.example b/conf/.env.example index f653a51..1ea2ef5 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -6,7 +6,7 @@ APP_NAME=2FAuth # You can leave this on "local". If you change it to production most console commands will ask for extra confirmation. # Never set it to "testing". -APP_ENV=local +APP_ENV=production # Set to true if you want to see debug information in error screens. @@ -109,4 +109,4 @@ PUSHER_APP_CLUSTER=mt1 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" -MIX_ENV=local \ No newline at end of file +MIX_ENV=local diff --git a/scripts/_common.sh b/scripts/_common.sh index b990244..a8861c9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,9 +7,9 @@ YNH_PHP_VERSION="7.3" # Composer version -YNH_COMPOSER_VERSION="2.1.3" +YNH_COMPOSER_VERSION="2.3.3" -pkg_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mysql" +pkg_dependencies=" php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mysql" #================================================= # PERSONAL HELPERS diff --git a/scripts/upgrade b/scripts/upgrade index 247af25..5e4172b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,11 +116,12 @@ ynh_script_progression --message="Building..." --weight=10 # Setup application config pushd $final_path - php$phpversion artisan migrate:refresh -n - php$phpversion artisan passport:install -n - php$phpversion artisan storage:link -n - php$phpversion artisan config:cache -n + php$phpversion artisan migrate -n + #php$phpversion artisan passport:install -n + #php$phpversion artisan storage:link -n + php$phpversion artisan config:clear -n popd + #================================================= # RELOAD NGINX #=================================================