mirror of
https://github.com/Cameri/nostream.git
synced 2025-06-21 14:10:48 +02:00
chore: fallback using OR
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
parent
1b5008567b
commit
0401964925
@ -11,6 +11,7 @@ ARG REDISHOST
|
||||
ARG REDISUSER
|
||||
ARG REDISPORT
|
||||
ARG REDISPASSWORD
|
||||
ARG DEBUG
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
|
@ -19,7 +19,7 @@ export class AppWorker implements IRunnable {
|
||||
}
|
||||
|
||||
public run(): void {
|
||||
const port = process.env.RELAY_PORT ?? process.env.PORT ?? 8008
|
||||
const port = process.env.RELAY_PORT || process.env.PORT || 8008
|
||||
this.adapter.listen(typeof port === 'number' ? port : Number(port))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user