mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-06 21:30:07 +02:00
Properly set the port
This commit is contained in:
+4
-2
@@ -30,11 +30,13 @@ app.get('/', function(req, res) {
|
|||||||
app.use('/', express.static(path.join(__dirname, '../../public')));
|
app.use('/', express.static(path.join(__dirname, '../../public')));
|
||||||
|
|
||||||
|
|
||||||
|
// set port
|
||||||
|
app.set('port', process.env.PORT || 3000);
|
||||||
|
|
||||||
|
|
||||||
// initialize http and socket servers
|
// initialize http and socket servers
|
||||||
server.listen(80, function() {
|
server.listen(app.get('port'), function() {
|
||||||
console.log('\033c> Server running on port 3000\n');
|
console.log('\033c> Server running on port %s\n', app.get('port'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user