feat(server): change port via environment variable
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f34ca830fa
commit
4c5995f166
1 changed files with 4 additions and 2 deletions
|
@ -107,5 +107,7 @@ io.on('connection', (socket) => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('listening on port :3000');
|
const port = parseInt(process.env.PORT || '3000');
|
||||||
io.listen(3000);
|
|
||||||
|
console.log(`listening on port :${port}`);
|
||||||
|
io.listen(port);
|
||||||
|
|
Loading…
Reference in a new issue