From 6182daeecb09deb1b3c0cff6ca65a6d338e30184 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 5 Apr 2022 12:35:42 +0200 Subject: [PATCH 1/5] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 70fbf4a..b9436ca 100755 --- a/scripts/install +++ b/scripts/install @@ -123,7 +123,7 @@ chown $app:$app "$final_path/.env" ynh_script_progression --message="Migrating database..." --weight=1 pushd "$final_path" - php$phpversion artisan migrate:fresh --seed + php$phpversion artisan migrate:fresh -n --seed popd #================================================= From 2eba4102fdadef08ae9fefb664b2d7d1d16c087e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 5 Apr 2022 22:31:05 +0200 Subject: [PATCH 2/5] Update manifest.json --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 3e79996..fb835fd 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id": "plainpad", "packaging_format": 1, "description": { - "en": "Self hosted, note taking application", - "fr": "Application de prise de notes auto-hébergée" + "en": "Note taking application", + "fr": "Prise de notes auto-hébergée" }, "version": "1.0.0~ynh2", "url": "https://alextselegidis.com/get/plainpad", From 0b4d264ba655afc118432053564a39cdd2de83e0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 8 Apr 2022 12:50:11 +0200 Subject: [PATCH 3/5] Update restore --- scripts/restore | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/restore b/scripts/restore index 6df366c..d4985d9 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,13 +70,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# RESTORE THE PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" - #================================================= # REINSTALL DEPENDENCIES #================================================= @@ -85,6 +78,16 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=1 # Define and install dependencies ynh_install_app_dependencies $pkg_dependencies +#================================================= +# RESTORE THE PHP-FPM CONFIGURATION +#================================================= +ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1 + +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" + +# Recreate a dedicated PHP-FPM config +ynh_add_fpm_config + #================================================= # RESTORE THE MYSQL DATABASE #================================================= From 5d0488ad13ed68f812f2808bcc29774b29eec793 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 8 Apr 2022 12:51:37 +0200 Subject: [PATCH 4/5] Update install --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index b9436ca..3e37872 100755 --- a/scripts/install +++ b/scripts/install @@ -146,6 +146,7 @@ if [ $is_public -eq 1 ] then ynh_permission_update --permission="main" --add="visitors" fi + ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" #================================================= From bfe6e20500d8406c712668aff76050c633e48b4f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 8 Apr 2022 15:46:44 +0200 Subject: [PATCH 5/5] Update .env.example --- conf/.env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/.env.example b/conf/.env.example index b5445f7..c9abc48 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -6,7 +6,7 @@ APP_NAME=Plainpad # This value determines the "environment" your application is currently # running in. This may determine how you prefer to configure various # services the application utilizes. Set this in your ".env" file. -APP_ENV=production +APP_ENV=local # This key is used by the Illuminate encrypter service and should be set # to a random, 32 character string, otherwise these encrypted strings