Skip to content

Commit

Permalink
Usando porta do env
Browse files Browse the repository at this point in the history
  • Loading branch information
emerson committed Sep 30, 2010
1 parent b77323c commit 749dbcf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions server.js
Expand Up @@ -5,8 +5,6 @@ var server = http.createServer(function (request, response) {
response.end('Hello World no.de\n' + process.env.PORT);
});

port = process.env.PORT || "8000";

server.listen(Number(port));

console.log('Server running at http://127.0.0.1:8000/');
//port = process.env.PORT || "8000";
//server.listen(Number(port));
server.listen(Number(process.env.PORT));

0 comments on commit 749dbcf

Please sign in to comment.