1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
Éric Gaspar 2024-06-08 11:45:45 +02:00
parent 2b65e103fc
commit a4e9fd5fcf
2 changed files with 2 additions and 4 deletions

View file

@ -7,11 +7,9 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="ETHERPAD_PRODUCTION=1"
Environment="NODE_ENV=production"
Environment="__YNH_NODE_LOAD_PATH__"
ExecStart=__INSTALL_DIR__/bin/run.sh
#ExecStart=__NODEJS_PATH__/pnpm run prod
ExecStart=__NODEJS_PATH__/pnpm run prod
Restart=always
# Sandboxing options to harden security

View file

@ -81,7 +81,7 @@ ynh_script_progression --message="Installing $app..." --weight=10
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate
ynh_exec_warn_less env $ynh_node_load_PATH ETHERPAD_PRODUCTION=1 COREPACK_ENABLE_DOWNLOAD_PROMPT=0 pnpm --recursive i --production
ynh_exec_warn_less env $ynh_node_load_PATH pnpm --recursive i --production
popd
#=================================================