From 365395371812780c9d4107fb8bef8afacbd1cf11 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 25 Oct 2018 22:56:45 +0200 Subject: [PATCH] fix custom port :bug: --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f9efde3..d177493 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ const healthCheck = () => { const config = { hostname: process.env.HOSTNAME || '2.db.transport.rest', - port: process.env.PORT || 3000, + port: process.env.PORT ? parseInt(process.env.PORT) : 3000, name: pkg.name, description: pkg.description, homepage: pkg.homepage,