fixed port variable

This commit is contained in:
Ian Ramzy 2020-03-23 20:57:57 -04:00
parent e609fb29c3
commit ddfc08adb1
1 changed files with 4 additions and 4 deletions

View File

@ -10,11 +10,11 @@ var public = path.join(__dirname, 'public');
app.use(express.static('public'));
app.get('/', function(req, res) {
app.get('/', function (req, res) {
res.sendFile(path.join(public, 'chat.html'));
});
app.get('/landing', function(req, res) {
app.get('/landing', function (req, res) {
res.sendFile(path.join(public, 'landing.html'));
});
@ -79,8 +79,8 @@ io.on('connection', function (socket) {
});
port = process.env.PORT || 3000
var port = process.env.PORT || 3000;
http.listen(port, function () {
console.log("http://localhost:"+port);
console.log("http://localhost:" + port);
});