summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilien Devos <contact@emiliendevos.be>2022-03-05 01:03:18 +0100
committerEmilien Devos <contact@emiliendevos.be>2022-03-05 01:03:18 +0100
commit444902d07d618b70f82b300a6165f32d7b4346db (patch)
tree43838fad8d00f9f967d37a197366911dd8de6af6
parentbce56d44f3c3072ef97d7eb2ab1324b4e8ca9287 (diff)
use port from env
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 98dd889..f769296 100644
--- a/index.js
+++ b/index.js
@@ -110,5 +110,5 @@ const responseHeadersToRemove = ["Accept-Ranges", "Content-Length", "Keep-Alive"
ctx.body = "Please specify the URL in the 'url' query string.";
}
});
- app.listen(3000);
+ app.listen(process.env.PORT || 3000);
})();