Support PM2 for the "Restart NodeBB" button
-
I'm pretty sure you already support restarting in Forever, but I prefer the features of PM2.
If you could even just point to where in the code you call the restart command, that would be awesome.
I know it is something related to the
admin.restart
event.The command to restart when using pm2 is
pm2 restart app.js
Thanks.
-
Just one process, I think that using loader.js worked.
-
-
@julian @psychobunny - Is there a hook for this? There isn't one documented. Because if there was, I could make a plugin. If there isn't, where in the core code is it located? I'd like to modify this for myself in some way to get it to work. Thanks.
-
@julian said:
If you're using
pm2 loader.js
, you should use the restart button in the ACP to restart NodeBB...I was dag nabbit.
(... or ideally, don't use PM2 at all, since the loader supercedes it. Just:
./nodebb start
)But I like to use pm2 because I use it for all of my other task management needs. Where in the code would it be?