api(config): respect $PORT as used by heroku if no explicit bind address provided

This commit is contained in:
Thomas Hobson 2021-11-26 02:32:28 +13:00 committed by GitHub
parent 3a2dc74586
commit 142e7912fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: [],
},
{