From 570d3aa1c9bdebfdbf172f0873d7cda94b89fcaf Mon Sep 17 00:00:00 2001 From: Mark Engel Date: Fri, 21 Jan 2011 14:24:56 +0100 Subject: enhanced gitignore --- .gitignore | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 1b91047..1608301 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,14 @@ usr/ + +# Temp Files # +############## +*.swp + + +# OS generated files # +###################### +*.DS_Store +ehthumbs.db +Icon? +Thumbs.db + -- cgit v1.2.3 From 9f2167aef63470b7d4cb3498aac736d284026ca9 Mon Sep 17 00:00:00 2001 From: Mark Engel Date: Fri, 21 Jan 2011 14:37:07 +0100 Subject: added host and port to config --- src/nodejs/config.json | 2 ++ src/nodejs/no1.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nodejs/config.json b/src/nodejs/config.json index 1025c5b..9c18203 100644 --- a/src/nodejs/config.json +++ b/src/nodejs/config.json @@ -1 +1,3 @@ exports.connectionString = "pg://user:password@host/database"; +exports.host = 'localhost'; +exports.port = 8080; diff --git a/src/nodejs/no1.js b/src/nodejs/no1.js index 1132a11..7be26a4 100644 --- a/src/nodejs/no1.js +++ b/src/nodejs/no1.js @@ -253,4 +253,5 @@ myRoutes = clutch.route404([ var http = require('http'); -http.createServer(myRoutes).listen(8080, 'localhost'); +http.createServer(myRoutes).listen(config.port, config.host); +console.log("Started server at " + config.host + ":" + config.port ); -- cgit v1.2.3