add detection of heroku port

This commit is contained in:
Ian Ramzy 2020-03-23 20:26:28 -04:00
parent 7a33472dd8
commit e609fb29c3

View File

@ -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);
}); });