feat(server): change port via environment variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ashhhleyyy 2022-08-13 19:14:25 +01:00
parent f34ca830fa
commit 4c5995f166
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

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