From 661940686038f4216e4a7962d8df1e5ec5dd6276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:37:29 +0200 Subject: [PATCH 1/5] Update dot_env --- conf/dot_env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/dot_env b/conf/dot_env index 39c60f9..0c356f5 100644 --- a/conf/dot_env +++ b/conf/dot_env @@ -49,7 +49,7 @@ SHOPPING_MIN_AUTOSYNC_INTERVAL=5 # If staticfiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder # This can either be a relative path from the applications base path or the url of an external host -#sub_path_only STATIC_URL=__INSTALL_DIR__/source/static/ +#sub_path_only STATIC_URL=/static/ # If mediafiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder From 53e00254c64efadfc230609466b642b6fd1baae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:55:04 +0200 Subject: [PATCH 2/5] Update dot_env --- conf/dot_env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/dot_env b/conf/dot_env index 0c356f5..50f6046 100644 --- a/conf/dot_env +++ b/conf/dot_env @@ -49,7 +49,8 @@ SHOPPING_MIN_AUTOSYNC_INTERVAL=5 # If staticfiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder # This can either be a relative path from the applications base path or the url of an external host -#sub_path_only STATIC_URL=/static/ +#sub_path_only +#STATIC_URL=/static/ # If mediafiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder From c5619d439830961d5d9197dff583ae27af88915a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:57:56 +0200 Subject: [PATCH 3/5] Update dot_env --- conf/dot_env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/dot_env b/conf/dot_env index 50f6046..25e724f 100644 --- a/conf/dot_env +++ b/conf/dot_env @@ -55,7 +55,7 @@ SHOPPING_MIN_AUTOSYNC_INTERVAL=5 # If mediafiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder # This can either be a relative path from the applications base path or the url of an external host -MEDIA_URL=/media/ +#MEDIA_URL=/media/ # Serve mediafiles directly using gunicorn. Basically everyone recommends not doing this. Please use any of the examples # provided that include an additional nxginx container to handle media file serving. From 1dd73b4f84fbd47889d6e61a843a720d6aafd190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:08:57 +0200 Subject: [PATCH 4/5] fix --- manifest.toml | 2 -- scripts/backup | 6 ------ scripts/restore | 9 --------- scripts/upgrade | 2 +- 4 files changed, 1 insertion(+), 18 deletions(-) diff --git a/manifest.toml b/manifest.toml index aa9c9b8..05b78ba 100644 --- a/manifest.toml +++ b/manifest.toml @@ -51,8 +51,6 @@ ram.runtime = "1500M" [resources.install_dir] - [resources.data_dir] - [resources.permissions] main.url = "/" diff --git a/scripts/backup b/scripts/backup index 34ea8d1..430bdcc 100755 --- a/scripts/backup +++ b/scripts/backup @@ -21,12 +21,6 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" -#================================================= -# BACKUP THE DATA DIR -#================================================= - -ynh_backup --src_path="$data_dir" --is_big - #================================================= # SYSTEM CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index e329248..3d43329 100755 --- a/scripts/restore +++ b/scripts/restore @@ -19,15 +19,6 @@ ynh_restore_file --origin_path="$install_dir" chown -R "$app:www-data" "$install_dir" -#================================================= -# RESTORE THE DATA DIRECTORY -#================================================= -ynh_script_progression --message="Restoring the data directory..." --weight=1 - -ynh_restore_file --origin_path="$data_dir" --not_mandatory - -chown -R "$app:www-data" "$data_dir" - #================================================= # RESTORE THE PostgreSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 03acc0b..21faa1d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,7 +31,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="$install_dir/.env" +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env mediafiles" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" From a3e120861a863e17deba3f7b857844ec06dd01d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:18:49 +0200 Subject: [PATCH 5/5] Update manifest.toml --- manifest.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifest.toml b/manifest.toml index 05b78ba..3d8be6e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -53,6 +53,11 @@ ram.runtime = "1500M" [resources.permissions] main.url = "/" + api.url = "/api" + api.allowed = "visitors" + api.auth_header = false + api.show_tile = false + api.protected = true [resources.ports] main.default = 8095