mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Fix
This commit is contained in:
parent
f72a2908b2
commit
d47487ede3
2 changed files with 3 additions and 5 deletions
|
@ -8,9 +8,8 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
Environment="PATH=__ENV_PATH__"
|
||||
Environment="NODE_ENV=production"
|
||||
ExecStart=node app.js
|
||||
ExecStart=__FINALPATH__ app.js
|
||||
#__YNH_NPM__
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
|
@ -18,3 +17,5 @@ PrivateDevices=true
|
|||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
|
|
@ -116,11 +116,8 @@ chown -R $app: $final_path
|
|||
|
||||
pushd "$final_path" || ynh_die
|
||||
ynh_use_nodejs
|
||||
#ynh_exec_warn_less
|
||||
bin/setup
|
||||
#ynh_exec_as $app env $ynh_node_load_PATH
|
||||
npm update
|
||||
#ynh_exec_as $app env $ynh_node_load_PATH
|
||||
npm run build
|
||||
popd || ynh_die
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue