Skip to content

Commit

Permalink
Update hardcoded console message.
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag committed May 1, 2012
1 parent 2fdeca7 commit d2fb22b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/server.js
Expand Up @@ -75,7 +75,7 @@ var CSSHandler = function() {
"default": "default/default.less",
"phone" : "phone/phone.less",
"reset" : "reset.css"
}
};

var baseDir = __dirname + "/../" + conf.clientDir + "css/";
// Fetch Base.less
Expand Down Expand Up @@ -156,7 +156,7 @@ app.get('/reader/:category.:format?', Cache(6), function(req, res) {
var controller = new logic.Controller(conf);
// request the category list i

controller.fetchCategory(category, format, function(output) {
controller.fetchCategory(category, format, function(output) {
res.send(output);
});
});
Expand All @@ -172,6 +172,7 @@ app.get('/reader/:category/:article.:format?', Cache(6), function(req, res) {
});
});

app.listen(conf.options.port, conf.options.host || undefined);
var host = conf.options.host || '127.0.0.1';
app.listen(conf.options.port, host);

console.log('Server running at http://127.0.0.1:3000/');
console.log('Server running at http://' + host + ':' + conf.options.port + '/');

0 comments on commit d2fb22b

Please sign in to comment.