Skip to content

Commit 3c042a0

Browse files
committed
added env PORT support
1 parent 3be46dc commit 3c042a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ const io = socketio(server);
1616
// store the current rooms' data
1717
const memory = {};
1818

19+
var port = process.env.PORT || 1337
1920

20-
server.listen(1337, () => console.log('The server is listening on port 1337!'));
21+
server.listen(port, () => console.log('The server is listening on port 1337!'));
2122

2223
let variable = path.join(__dirname, '../public')
2324

0 commit comments

Comments
 (0)