1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
This commit is contained in:
ericgaspar 2021-09-02 10:09:41 +02:00
parent e40da31ace
commit b6ac81c78a
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 9 deletions

View file

@ -11,8 +11,8 @@ Group=__APP__
Environment=NODE_ENV=production
WorkingDirectory=__FINALPATH__/
#PIDFile=__FINALPATH__/pidfile
Environment="__YNH_NODE_LOAD_PATH__"
ExecStart=__YNH_NODE__ __FINALPATH__/nodebb start
Environment="__NODE_ENV_PATH__"
ExecStart=__FINALPATH__/nodebb start
#loader.js
Restart=always

View file

@ -143,11 +143,6 @@ pushd $final_path
ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log
popd
#ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup "${setup}"
pushd $final_path
ynh_exec_as $app env $ynh_node_load_PATH node $final_path/app --setup "${setup}" --series | tee -a $install_log
popd
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -161,8 +156,6 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
ynh_add_systemd_config
#=================================================