mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +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
|
||||
|
||||
**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
|
||||
# apt-get update && apt-get dist-upgrade
|
||||
@@ -43,6 +43,8 @@ Lastly, we run the forum.
|
||||
|
||||
$ 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:
|
||||
|
||||
# update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
|
||||
@@ -292,8 +292,12 @@ var express = require('express'),
|
||||
app.get('/api/:method/:id*', api_method);
|
||||
|
||||
app.all('/test', function(req, res) {
|
||||
var RDB = require('./redis.js');
|
||||
RDB.lpush('administrators', 1, function(err, data) {
|
||||
// console.log(err, data);
|
||||
res.send();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//START TODO: MOVE TO GRAPH.JS
|
||||
|
||||
Reference in New Issue
Block a user