From 90bb4eecdc15d7b11b07fb8a4ce5a724b9838635 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 10 May 2022 08:13:24 +0200 Subject: [PATCH] Fix --- conf/.env.example | 2 +- scripts/install | 6 +++++- scripts/upgrade | 9 ++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/conf/.env.example b/conf/.env.example index 0174860..dd0a5c4 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -79,7 +79,7 @@ SESSION_DRIVER=file # Refer your email provider documentation to configure your mail settings # Set a value for every available setting to avoid issue -MAIL_DRIVER=log +MAIL_DRIVER=smtp MAIL_HOST=localhost MAIL_PORT=25 MAIL_FROM=admin@__DOMAIN__ diff --git a/scripts/install b/scripts/install index 3889682..cf0a504 100755 --- a/scripts/install +++ b/scripts/install @@ -112,7 +112,7 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Installing $app with Composer..." --weight=15 -ynh_install_composer #--install_args="--ignore-platform-reqs" +ynh_install_composer --install_args="--prefer-dist --no-scripts --no-dev" #================================================= # ADD A CONFIGURATION @@ -139,6 +139,10 @@ pushd $final_path php$phpversion artisan key:generate -n popd +chmod 775 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1a099d2..86a4d49 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,7 +112,7 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Installing $app with Composer..." --weight=15 -ynh_install_composer +ynh_install_composer --install_args="--prefer-dist --no-scripts --no-dev" #================================================= # BUILDING @@ -121,10 +121,13 @@ ynh_script_progression --message="Building..." --weight=10 # Setup application config pushd $final_path + php$phpversion artisan cache:clear + php$phpversion artisan config:clear php$phpversion artisan migrate -n - #php$phpversion artisan passport:install -n + php$phpversion artisan passport:install -n #php$phpversion artisan storage:link -n - php$phpversion artisan config:clear -n + php$phpversion artisan config:cache -n + php$phpversion artisan route:cache popd #=================================================