mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
updated readme to link to wiki page on running NodeBB
This commit is contained in:
@@ -18,7 +18,7 @@ First, we install our base software stack:
|
|||||||
|
|
||||||
# apt-get install git nodejs redis-server npm build-essential imagemagick
|
# apt-get install git nodejs redis-server npm build-essential imagemagick
|
||||||
|
|
||||||
**If your package manager only installed a version of Node.js that is less than 0.8:**
|
**If your package manager only installed a version of Node.js that is less than 0.8 (e.g. Ubuntu 12.10, 13.04):**
|
||||||
|
|
||||||
# add-apt-repository ppa:chris-lea/node.js
|
# add-apt-repository ppa:chris-lea/node.js
|
||||||
# apt-get update && apt-get dist-upgrade
|
# apt-get update && apt-get dist-upgrade
|
||||||
@@ -43,6 +43,8 @@ Lastly, we run the forum.
|
|||||||
|
|
||||||
$ node app
|
$ node app
|
||||||
|
|
||||||
|
NodeBB can also be started with helper programs, such as `supervisor` and `forever`. [Take a look at the options here](https://github.com/designcreateplay/NodeBB/wiki/How-to-run-NodeBB).
|
||||||
|
|
||||||
*(Optional)* Some server configurations may install the node binary as `nodejs` instead of `node`. You can re-map it (so as to not break compatibility with `node-supervisor`) by running the following command:
|
*(Optional)* Some server configurations may install the node binary as `nodejs` instead of `node`. You can re-map it (so as to not break compatibility with `node-supervisor`) by running the following command:
|
||||||
|
|
||||||
# update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
|
# update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
|
||||||
@@ -292,7 +292,11 @@ var express = require('express'),
|
|||||||
app.get('/api/:method/:id*', api_method);
|
app.get('/api/:method/:id*', api_method);
|
||||||
|
|
||||||
app.all('/test', function(req, res) {
|
app.all('/test', function(req, res) {
|
||||||
res.send();
|
var RDB = require('./redis.js');
|
||||||
|
RDB.lpush('administrators', 1, function(err, data) {
|
||||||
|
// console.log(err, data);
|
||||||
|
res.send();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user