1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
ericgaspar 2021-08-30 15:16:17 +02:00
parent 8d7e3a51ab
commit c1e0801e94
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 9 additions and 22 deletions

View file

@ -6,20 +6,15 @@ After=network.target
Type=simple Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
#WorkingDirectory=__FINALPATH__/ WorkingDirectory=__FINALPATH__/
Environment="PATH=__ENV_PATH__" Environment="PATH=__ENV_PATH__"
Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/"
Environment="NODE_ENV=production" Environment="NODE_ENV=production"
ExecStart=/usr/bin/yarn start ExecStart=/usr/bin/yarn start
ProtectSystem=yes Restart=on-failure
ProtectHome=yes RestartSec=5
NoNewPrivileges=yes StartLimitInterval=60s
PrivateTmp=yes StartLimitBurst=3
#Restart=on-failure
#RestartSec=5
#StartLimitInterval=60s
#StartLimitBurst=3
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -129,19 +129,11 @@ ynh_add_config --template="../conf/config.js" --destination="$datadir/config.js"
#================================================= #=================================================
ynh_script_progression --message="Installing The Lounge..." ynh_script_progression --message="Installing The Lounge..."
# pushd $final_path
# ynh_use_nodejs
# ynh_exec_warn_less NODE_ENV=production yarn install
# yarn add webpack webpack-dev-server --dev
# ynh_exec_warn_less NODE_ENV=production yarn build
# popd
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app yarn install ynh_exec_warn_less NODE_ENV=production yarn install
yarn add webpack webpack-dev-server --dev yarn add webpack webpack-dev-server --dev
ynh_exec_warn_less ynh_exec_as $app NODE_ENV=production yarn build ynh_exec_warn_less NODE_ENV=production yarn build
ynh_exec_warn_less ynh_exec_as $app yarn link
popd popd
#================================================= #=================================================