mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
fix
This commit is contained in:
parent
8d7e3a51ab
commit
c1e0801e94
2 changed files with 9 additions and 22 deletions
|
@ -6,20 +6,15 @@ After=network.target
|
|||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
#WorkingDirectory=__FINALPATH__/
|
||||
WorkingDirectory=__FINALPATH__/
|
||||
Environment="PATH=__ENV_PATH__"
|
||||
Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/"
|
||||
Environment="NODE_ENV=production"
|
||||
ExecStart=/usr/bin/yarn start
|
||||
ProtectSystem=yes
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
PrivateTmp=yes
|
||||
|
||||
#Restart=on-failure
|
||||
#RestartSec=5
|
||||
#StartLimitInterval=60s
|
||||
#StartLimitBurst=3
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StartLimitInterval=60s
|
||||
StartLimitBurst=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -129,19 +129,11 @@ ynh_add_config --template="../conf/config.js" --destination="$datadir/config.js"
|
|||
#=================================================
|
||||
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
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as $app yarn install
|
||||
yarn add webpack webpack-dev-server --dev
|
||||
ynh_exec_warn_less ynh_exec_as $app NODE_ENV=production yarn build
|
||||
ynh_exec_warn_less ynh_exec_as $app yarn link
|
||||
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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue