mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-23 18:49:21 +08:00
fixed port variable
This commit is contained in:
parent
e609fb29c3
commit
ddfc08adb1
8
index.js
8
index.js
@ -10,11 +10,11 @@ var public = path.join(__dirname, 'public');
|
|||||||
|
|
||||||
app.use(express.static('public'));
|
app.use(express.static('public'));
|
||||||
|
|
||||||
app.get('/', function(req, res) {
|
app.get('/', function (req, res) {
|
||||||
res.sendFile(path.join(public, 'chat.html'));
|
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'));
|
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 () {
|
http.listen(port, function () {
|
||||||
console.log("http://localhost:"+port);
|
console.log("http://localhost:" + port);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user