mirror of
https://github.com/YunoHost-Apps/osjs_ynh.git
synced 2024-09-03 19:56:11 +02:00
Update install
This commit is contained in:
parent
ec894fb3f1
commit
7bf4106197
1 changed files with 5 additions and 3 deletions
|
@ -125,14 +125,16 @@ sudo chown admin -R $install_log
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
npm install >> $install_log 2>&1
|
NODE_ENV=production npm install >> $install_log 2>&1
|
||||||
node osjs build
|
NODE_ENV=production npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Configure init script
|
# Set right on directory and configure init script
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
sudo chown $app:$app $final_path -R
|
||||||
|
sudo chmod 755 $final_path -R
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable "$app".service
|
systemctl enable "$app".service
|
||||||
systemctl start "$app".service
|
systemctl start "$app".service
|
||||||
|
|
Loading…
Add table
Reference in a new issue