Browse Source

server: use port from env

master
Milan Pässler 1 year ago
parent
commit
af2272d4b9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/index.js

+ 1
- 1
server/index.js View File

@@ -90,4 +90,4 @@ http.createServer(async (req, stream) => {

stream.writeHead(200, { "Content-Type": "application/json" });
stream.end(JSON.stringify(res));
}).listen(8080);
}).listen(process.env.PORT || 8080);

Loading…
Cancel
Save