Skip to content

Commit

Permalink
updated readme. added app.port to config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pstadler committed Sep 5, 2011
1 parent 157b549 commit c70df13
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions 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")
7 changes: 7 additions & 0 deletions 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
}
};

Expand Down
2 changes: 1 addition & 1 deletion server.js
Expand Up @@ -40,4 +40,4 @@ http.createServer(function (request, response) {
});
}

}).listen(8080);
}).listen(config.app.port);

0 comments on commit c70df13

Please sign in to comment.