Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PermanAtayev committed Jul 5, 2020
1 parent bfb67f5 commit fb11392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { generateMessage, generateLocationMessage } = require("./utils/messages")

const { addUser, removeUser, getUser, getUsersInRoom } = require("./utils/users");

const port = 3000 || process.env.PORT;
const port = process.env.PORT || 3000;
app.use(express.static('public'));

io.on('connection', (socket) => {
Expand Down

0 comments on commit fb11392

Please sign in to comment.