aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-28 21:31:59 +0200
committerMateja Marić <mail@matejamaric.com>2021-05-28 22:32:48 +0200
commitc5300bf942c178711e6c973cab7432acc2a73c4d (patch)
treef28914841ef2da7db6b3de661ec19f76c358a16f /index.js
parent5ed4787e33e258cc9afa7e9d2886a0b590d69715 (diff)
downloadnode-playground-c5300bf942c178711e6c973cab7432acc2a73c4d.tar.gz
node-playground-c5300bf942c178711e6c973cab7432acc2a73c4d.zip
Add `Dockerfile` and `.dockerignore`.
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index d2e486e..675233e 100644
--- a/index.js
+++ b/index.js
@@ -48,4 +48,4 @@ app.use(oldForm);
app.use('/', webRoutes);
-app.listen(process.env.PORT, () => console.log(`Server started on port ${process.env.PORT}.`));
+app.listen(process.env.PORT || 8080, () => console.log(`Server started on port ${process.env.PORT || 8080}.`));