The preferred way to start and stop NodeBB is by invoking its executable:
./nodebb startStarts the NodeBB server
./nodebb stopStops the NodeBB server
- Alternatively, you may use
npm stopto do the same
The methods listed below are alternatives to starting NodeBB via the executable.
Simple Node.js Process¶
To start NodeBB, run it with
node (some distributions use the executable
nodejs, please adjust accordingly):
$ cd /path/to/nodebb/install $ node app
However, bear in mind that crashes will cause the NodeBB process to halt, bringing down your forum. Consider some of the more reliable options, below:
Using the supervisor package, you can have NodeBB restart itself if it crashes:
$ npm install -g supervisor $ supervisor app
supervisor by default continues to pipe output to
stdout, it is best suited to development builds.