diff options
author | Emilien Devos <contact@emiliendevos.be> | 2022-03-05 01:03:18 +0100 |
---|---|---|
committer | Emilien Devos <contact@emiliendevos.be> | 2022-03-05 01:03:18 +0100 |
commit | 444902d07d618b70f82b300a6165f32d7b4346db (patch) | |
tree | 43838fad8d00f9f967d37a197366911dd8de6af6 | |
parent | bce56d44f3c3072ef97d7eb2ab1324b4e8ca9287 (diff) |
use port from env
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); })(); |