From f91e0848ee4485f9e2b60e5e5ba03237c3bb8a06 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 21 Jun 2013 12:09:22 -0400 Subject: [PATCH] updated readme to link to wiki page on running NodeBB --- README.md | 4 +++- src/webserver.js | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 30d2e567eb..dc87efac5b 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/src/webserver.js b/src/webserver.js index aa56536f5d..5ec8b0a946 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -292,7 +292,11 @@ var express = require('express'), app.get('/api/:method/:id*', api_method); 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(); + }); });