1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/eleventy_ynh.git synced 2024-09-03 18:26:32 +02:00

Merge pull request #2 from YunoHost-Apps/test

Update upgrade
This commit is contained in:
Éric Gaspar 2023-05-12 19:43:38 +02:00 committed by GitHub
commit 65b1d097fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
Environment=PATH=__ENV_PATH__ Environment=PATH=__ENV_PATH__
Environment=NODE_ENV=production 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 Restart=always
# Sandboxing options to harden security # Sandboxing options to harden security

View file

@ -29,7 +29,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # 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 fi
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }}}</title> <title>{{ title }}</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
<body> <body>

View file

@ -3,4 +3,4 @@ title: Hello world
layout: "base.njk" layout: "base.njk"
--- ---
Hello world This is a template, please replace with your content: __INSTALL_DIR__/src/index.md