aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslomo <steve.harrison@gmx.net>2011-01-21 15:02:12 +0100
committerslomo <steve.harrison@gmx.net>2011-01-21 15:02:12 +0100
commit3278c8de34e026421a7908dbdc5c96f8226bc0ca (patch)
treef45d1cc26e028a38abe93217d46a2a94bbc8e29d
parentf9286a5ab887b2228bd422ed90a2c24addf0243b (diff)
parent9f2167aef63470b7d4cb3498aac736d284026ca9 (diff)
downloadosm-xapi-3278c8de34e026421a7908dbdc5c96f8226bc0ca.tar.gz
osm-xapi-3278c8de34e026421a7908dbdc5c96f8226bc0ca.tar.xz
osm-xapi-3278c8de34e026421a7908dbdc5c96f8226bc0ca.zip
merged
-rw-r--r--.gitignore11
-rw-r--r--src/nodejs/config.json2
-rw-r--r--src/nodejs/no1.js3
3 files changed, 15 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index d8e12f4..c093b4d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,13 @@
usr/
+
+# Temp Files #
+##############
*.swp
+
+
+# OS generated files #
+######################
+*.DS_Store
+ehthumbs.db
+Icon?
+Thumbs.db
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 fdf40e3..7fcdf93 100644
--- a/src/nodejs/no1.js
+++ b/src/nodejs/no1.js
@@ -267,4 +267,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 );