From 142e7912fa03fda7823ebf4b24133881341a7c5d Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Fri, 26 Nov 2021 02:32:28 +1300 Subject: [PATCH] api(config): respect $PORT as used by heroku if no explicit bind address provided --- api/src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/config.js b/api/src/config.js index 85aa691..5324097 100644 --- a/api/src/config.js +++ b/api/src/config.js @@ -68,7 +68,7 @@ const options = [ { key: 'bind_address', desc: 'Address to bind REST API on', - default: '0.0.0.0:2000', + default: `0.0.0.0:${process.env["PORT"] || 2000}`, validators: [], }, {