api(config): respect $PORT as used by heroku if no explicit bind address provided
This commit is contained in:
parent
3a2dc74586
commit
142e7912fa
|
@ -68,7 +68,7 @@ const options = [
|
||||||
{
|
{
|
||||||
key: 'bind_address',
|
key: 'bind_address',
|
||||||
desc: 'Address to bind REST API on',
|
desc: 'Address to bind REST API on',
|
||||||
default: '0.0.0.0:2000',
|
default: `0.0.0.0:${process.env["PORT"] || 2000}`,
|
||||||
validators: [],
|
validators: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue