From f53e73fdb0573bdccaef853d6a11b664b8df443b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 12 May 2023 19:34:50 +0200 Subject: [PATCH 1/3] Update upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3118682..6f7bfce 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,7 +29,7 @@ then 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" --keep = ".env" + ynh_setup_source --dest_dir="$install_dir" --keep = ".eleventy.js" fi chown -R $app:www-data "$install_dir" From cd36332382247cc5f06405fd8499e43fba9eec9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 12 May 2023 19:39:33 +0200 Subject: [PATCH 2/3] Update systemd.service --- conf/systemd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 7293889..e41622a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,7 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment=PATH=__ENV_PATH__ Environment=NODE_ENV=production -ExecStart=npx @11ty/eleventy --serve --port=__PORT__ --watch --quiet +ExecStart=__INSTALL_DIR__/cmd.js --serve --port=__PORT__ --watch --quiet Restart=always # Sandboxing options to harden security From e457c34eb7fb6e3a669568bca41e2a7460e9921b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 12 May 2023 19:43:07 +0200 Subject: [PATCH 3/3] fix --- sources/_includes/base.njk | 2 +- sources/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/_includes/base.njk b/sources/_includes/base.njk index a883dbb..4c849fa 100644 --- a/sources/_includes/base.njk +++ b/sources/_includes/base.njk @@ -3,7 +3,7 @@ - {{ title }}} + {{ title }} diff --git a/sources/index.md b/sources/index.md index c1db598..ddf39ce 100644 --- a/sources/index.md +++ b/sources/index.md @@ -3,4 +3,4 @@ title: Hello world layout: "base.njk" --- -Hello world \ No newline at end of file +This is a template, please replace with your content: __INSTALL_DIR__/src/index.md \ No newline at end of file