Skip to content

Commit

Permalink
Merge pull request #75 from rwth-acis/master
Browse files Browse the repository at this point in the history
Fix for running websocket using dockerfile
  • Loading branch information
dmonad authored Nov 20, 2021
2 parents c4db346 + 0d217d3 commit 1e1be2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ COPY package*.json ./
USER node
RUN npm install
COPY --chown=node:node . .
EXPOSE 1234
CMD [ "npm", "start" ]
6 changes: 3 additions & 3 deletions bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ server.on('upgrade', (request, socket, head) => {
wss.handleUpgrade(request, socket, head, handleAuth)
})

server.listen({ host, port })

console.log(`running at '${host}' on port ${port}`)
server.listen(port, () => {
console.log(`running at '${host}' on port ${port}`)
})

0 comments on commit 1e1be2c

Please sign in to comment.