aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-11-22 04:31:30 +0300
committerGravatar Vitaly Takmazov2023-11-23 00:28:54 +0300
commit3756d718ef3c694bc6e6d707882f4c8db96206a2 (patch)
treef5acfaa74bda023028da47c8fbe9ca8c909b6154
parentdc0b056a71475868c94c946e3333421e9fae35fc (diff)
vNext: allow to override listen port from environment variable
-rw-r--r--vnext/server/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index 8eb86981..b4186bbf 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -10,7 +10,7 @@ import event from './middleware/event'
import oembed from './middleware/oembed'
import urlExpand from './middleware/urlexpand'
-const PORT = 8081
+const PORT = process.env.LISTEN_PORT || 8081
import path from 'path'
import { webhook, webhookPath } from './durov'