aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodejs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-01-21 14:43:39 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-01-21 14:43:39 +0100
commit20fccf4c3bce3a8647bca5a82052e9bea8411abe (patch)
tree6a8e21e2344ebcea9ffd2cfd72767f5e464bb9d3 /src/nodejs
parent7afd4f2c8d623459f4b4d92a38571408ab2daf04 (diff)
parent9f2167aef63470b7d4cb3498aac736d284026ca9 (diff)
downloadosm-xapi-20fccf4c3bce3a8647bca5a82052e9bea8411abe.tar.gz
osm-xapi-20fccf4c3bce3a8647bca5a82052e9bea8411abe.tar.xz
osm-xapi-20fccf4c3bce3a8647bca5a82052e9bea8411abe.zip
Merge branch 'master' of git://github.com/slomo/osm-spline-xapi
Diffstat (limited to 'src/nodejs')
-rw-r--r--src/nodejs/config.json2
-rw-r--r--src/nodejs/no1.js3
2 files changed, 4 insertions, 1 deletions
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 );