Browse Source

Log this neatly

Jake 10 năm trước cách đây
mục cha
commit
97bd3aceb3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      server.js

+ 2 - 2
server.js

@@ -88,8 +88,8 @@ function requestHandler(req, res) {
 
 var boot = module.exports = function () {
   var port = process.env.PORT || 3000;
-  var bind_ip = process.env.BIND || '127.0.0.1';
-  console.log("Server running on " + bind_ip + port);
+  var bind_ip = process.env.BIND || "127.0.0.1";
+  console.log("Server running on http://" + bind_ip + ":" + port + "/");
   http.createServer(requestHandler).listen(port, bind_ip);
 };