aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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 );