From c70df13001c68fec777581e4f41fb366760f1221 Mon Sep 17 00:00:00 2001 From: Patrick Stadler Date: Mon, 5 Sep 2011 17:01:51 +0200 Subject: [PATCH] updated readme. added app.port to config.js --- README.md | 13 +++++++++++++ config.js.sample | 7 +++++++ server.js | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e69de29..25a3017 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,13 @@ +# Candy on node.js + +Deploy [Candy](http://amiadogroup.github.com/candy/) as a node.js application. + +## Setup + +* Check out the submodules: `git submodule update --init` +* Copy config.js.sample to config.js +* Change the preferences in config.js to fit your setup +* Deploy it + +--- +Brought to you by [koeniglich.ch](http://koeniglich.ch/ "Patrick is koeniglich") \ No newline at end of file diff --git a/config.js.sample b/config.js.sample index 3a9ac4d..7306dcf 100644 --- a/config.js.sample +++ b/config.js.sample @@ -1,12 +1,19 @@ var config = { + // Candy settings + // See http://amiadogroup.github.com/candy/#configuration candy: { core: { debug: false, autojoin: ['test@conference.localhost.local'] }, view: { resources: 'candy/res/' } }, + // HTTP-Bind settings http_bind: { host: 'localhost', port: 5280, path: '/http-bind/'; + }, + // App setting + app: { + port: 8080 } }; diff --git a/server.js b/server.js index 117bd6b..6661f4f 100644 --- a/server.js +++ b/server.js @@ -40,4 +40,4 @@ http.createServer(function (request, response) { }); } -}).listen(8080); \ No newline at end of file +}).listen(config.app.port); \ No newline at end of file