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-04-07 19:47:26 +02:00
parent 98588d9a37
commit f4ef8064c1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 11 additions and 6 deletions

View file

@ -6,11 +6,16 @@ After=system.slice multi-user.target mongod.service
[Service] [Service]
Type=forking Type=forking
User=__APP__ User=__APP__
Group=__APP__
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodebb
Environment=NODE_ENV=production
WorkingDirectory=__FINALPATH__ WorkingDirectory=__FINALPATH__
Environment="NODE_ENV=production" PIDFile=__FINALPATH__/pidfile
Environment="__YNH_NODE_LOAD_PATH__" Environment="__YNH_NODE_LOAD_PATH__"
ExecStart=__FINALPATH__/loader.js --no-daemon --no-silent ExecStart=__FINALPATH__/loader.js
Restart=always Restart=always
[Install] [Install]

View file

@ -143,11 +143,11 @@ chown -R $app:$app $final_path
pushd $final_path pushd $final_path
#ynh_exec_as $app env $ynh_node_load_PATH #ynh_exec_as $app env $ynh_node_load_PATH
./nodebb setup -l > $install_log ./nodebb setup #-l > $install_log
#ynh_exec_as $app env $ynh_node_load_PATH #ynh_exec_as $app env $ynh_node_load_PATH
npm install nodebb-plugin-dbsearch --save-prod #npm install nodebb-plugin-dbsearch --save-prod
#ynh_exec_as $app env $ynh_node_load_PATH #ynh_exec_as $app env $ynh_node_load_PATH
./nodebb build -l #./nodebb build -l
#exec_as $app ./nodebb setup -l > $install_log #exec_as $app ./nodebb setup -l > $install_log
#exec_as $app npm install nodebb-plugin-dbsearch --save-prod #exec_as $app npm install nodebb-plugin-dbsearch --save-prod
#exec_as $app ./nodebb build -l #exec_as $app ./nodebb build -l