Permalink
Browse files

added new http port to conf and added conf var to server

  • Loading branch information...
1 parent 13df28b commit fe53750ca8822f56e6dbf65060328ce870e367f5 Richard Ive committed Mar 25, 2012
Showing with 8 additions and 1 deletion.
  1. +5 −0 conf/config.js
  2. +3 −1 server.js
View
@@ -11,6 +11,11 @@ config.db = {
}
};
+
+config.http = {
+ port:16156
+}
+
config.importer = {
path: '/Users/richardive/Development/postcodes/Data/'
}
View
@@ -29,6 +29,8 @@ app.all('/postcode/:postcode.:format?', function(req, res){
postcode = req.params.postcode.replace(/ /gi, '').toUpperCase();
if(postcode){
+
+ console.log("Fetching: " + postcode);
switch(format){
case 'xml':
@@ -58,4 +60,4 @@ app.get('*', function(req,res){
});
//bind server port
-app.listen(16156);
+app.listen(config.http.port);

0 comments on commit fe53750

Please sign in to comment.