1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00
This commit is contained in:
ericgaspar 2021-06-02 18:17:17 +02:00
parent f72a2908b2
commit d47487ede3
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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