diff --git a/index.js b/index.js index 3928926..59d323b 100644 --- a/index.js +++ b/index.js @@ -78,7 +78,9 @@ io.on('connection', function (socket) { }); }); -http.listen(3000, function () { - console.log("http://localhost:3000"); + +port = process.env.PORT || 3000 +http.listen(port, function () { + console.log("http://localhost:"+port); });