From a226f740dafd31a6bda4c72f9a0d8118a1a81a32 Mon Sep 17 00:00:00 2001 From: Omar Elkadi <omar.elkadi@stud.th-deg.de> Date: Mon, 21 Jun 2021 23:07:05 -0700 Subject: [PATCH] allow acsses from outside express --- server/dist/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/dist/server.js b/server/dist/server.js index e1ab0ee..e286207 100644 --- a/server/dist/server.js +++ b/server/dist/server.js @@ -8,3 +8,7 @@ app.get('/', (req, res) => { res.send('Hello World') }) const PORT = process.env.PORT || 3000 app.listen(PORT, () => { console.log(`Server is running in http://localhost:${PORT}`) }) // # sourceMappingURL=server.js.map + +app.listen(3000, '0.0.0.0', function () { + console.log('Listening to port: ' + 3000) +}) -- GitLab