Node.js based forum software built for the modern web
forgot to port "how to run nodebb"
psychobunny1d6623dd1c5d
diff --git a/docs/index.rst b/docs/index.rstindex b57903be8e..4e7d9f592c 100644--- a/docs/index.rst+++ b/docs/index.rst@@ -31,6 +31,14 @@ Configuring NodeBBconfiguring/databasesconfiguring/proxies+Running NodeBB+------------------++.. toctree::+ :maxdepth: 2++ running/index+Upgrading NodeBB------------------diff --git a/docs/running/index.rst b/docs/running/index.rstnew file mode 100644index 0000000000..f02c06df5b--- /dev/null+++ b/docs/running/index.rst@@ -0,0 +1,45 @@+Running NodeBB+================++The preferred way to start and stop NodeBB is by invoking its executable:++* `./nodebb start` Starts the NodeBB server+* `./nodebb stop` Stops the NodeBB server+* Alternatively, you may use `npm start` and `npm stop` to 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):++.. code:: bash++ $ 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:++Supervisor Process+-----------------------++Using the [`supervisor` package](https://github.com/isaacs/node-supervisor), you can have NodeBB restart itself if it crashes:++.. code:: bash++ $ npm install -g supervisor+ $ supervisor app++As `supervisor` by default continues to pipe output to `stdout`, it is best suited to development builds.++Forever Daemon+-----------------------++Another way to keep NodeBB up is to use the [`forever` package](https://github.com/nodejitsu/forever) via the command line interface, which can monitor NodeBB and re-launch it if necessary:++.. code:: bash++ $ npm install -g forever+ $ forever start app.js\ No newline at end of file