Update Objc Rules
This commit is contained in:
parent
d22ab48d7c
commit
8b1404bd4e
4 changed files with 55 additions and 54 deletions
|
|
@ -5,7 +5,8 @@ var http = require("http")
|
|||
, mime = require("mime")
|
||||
, url = require("url")
|
||||
, fs = require("fs")
|
||||
, port = process.env.PORT || 8888;
|
||||
, port = process.env.PORT || 8888
|
||||
, ip = process.env.IP || "0.0.0.0";
|
||||
|
||||
// compatibility with node 0.6
|
||||
if (!fs.exists)
|
||||
|
|
@ -40,6 +41,6 @@ http.createServer(function(request, response) {
|
|||
response.end();
|
||||
});
|
||||
});
|
||||
}).listen(port, "0.0.0.0");
|
||||
}).listen(port, ip);
|
||||
|
||||
console.log("http://localhost:" + port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue