1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/eleventy_ynh.git synced 2024-09-03 18:26:32 +02:00
This commit is contained in:
Éric Gaspar 2023-05-12 19:45:23 +02:00
parent 8a1e3b4079
commit 26844e01ac
3 changed files with 5 additions and 5 deletions

View file

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

View file

@ -26,9 +26,9 @@ ynh_script_progression --message="Setting up source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir"
ynh_add_config --template="../sources/index.md" --destination="$install_dir/src/index.md"
ynh_add_config --template="../sources/style.css" --destination="$install_dir/src/style.css"
mv "../sources/_includes" "$install_dir/src/_includes"
ynh_add_config --template="../sources/index.md" --destination="$data_dir/src/index.md"
ynh_add_config --template="../sources/style.css" --destination="$data_dir/src/style.css"
mv "../sources/_includes" "$data_dir/src/_includes"
chown -R $app:www-data "$install_dir"

View file

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