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 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" 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 @@
-