The sidebar widgets I believe are custom HTML blocks.
Solved How you running NodeBB ?
-
Which is your choose ?
- Forever Daemon
- Supervisor Process
- Upstart
- ./nodebb start
or Docker
-
Supervisor
-
I'm using pm2
-
./nodebb start then updown.io looking for loader.js every 30 seconds to monitor uptime and alert me when its down. Could probably hook that into an IFTTT script that starts nodebb again. But, for now my site goes down when I shut it down. So not very necessary.
-
./nodebb start only. It's pretty stable
-
I've used ./nodebb start ever since it was introduced. We have no issues with it.
-
Glad to hear
./nodebb start
is working well -
I just use ./nodebb start also. Never had a need to touch it otherwise.
-
[[email protected] ~]# cat /etc/systemd/system/nodebb.service
[Unit]
Description=NodeBB Forum platform
After=system.slice multi-user.target[Service]
Type=simple
User=nodeStandardOutput=syslog
StandardError=syslog
SyslogIdentifier=node
SyslogFacility=local0WorkingDirectory=/home/node/forum/
ExecStart=/bin/node app.js
Restart=always[Install]
WantedBy=multi-user.target
[[email protected] ~]#[[email protected] ~]# uname -a
Linux localdomain 3.10.0-042stab112.15 #1 SMP Tue Oct 20 17:22:56 2015 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]#
service nodebb start
service nodebb restart
systemctl enable nodebb.service
-
@Apxukoc Ah, but then you can't use the reload/restart buttons in the ACP
Have you tried changing the executable to run
node loader.js --no-daemon --no-silent
? -
@julian
I write through Google Translate, sorry.
I needed a script run at boot time, I got it
The only thing you surely noticed that there will be no check to verify the process. But such monitoring I solved by Zabbix -
@agusputra I am trying to use pm2 as well.
But when I tried start nodebb in pm2
pm2 start loader.js --name nodebb
error will be in pm2 console
PM2: 2015-12-15 14:26:54: Starting execution sequence in -fork mode- for app name:nodebb id:2 PM2: 2015-12-15 14:26:54: App name:nodebb id:2 online PM2: 2015-12-15 14:26:55: App name:nodebb id:2 exited with code 0
Could you please tell me how to start nodebb in pm2?
-
@SuperMike I'm just using pm2 to start nodebb shell script.
1. Create pm2.json5
{ apps : [ { name: "MyForumApp", script: "nodebb", args: "start" } ] }
2. Then
pm2 start pm2.json5
-
@Apxukoc I am using Ubuntu 15.10 now on my laptop, so I'll need to figure out a systemd script too
Might just use yours..
-
@agusputra How do you stop NodeBB using your method?
If i do
pm2 stop MyForumApp
the pm2 list has a big red Stopped on it but I can still access the forum. If I then do./nodebb stop
it actually stops it. -
@giantkingsquid Yes, I do
./nodebb stop
-
I use: ./nodebb start
-
Hmm intresting
-
./nodebb start works like a charm and I've never had a problem with it.
-
Well it's /nodebb start or /nodebb stop to stop it