chore: fallback using OR

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
Ricardo Arturo Cabral Mejía 2022-12-28 20:45:59 -05:00
parent 1b5008567b
commit 0401964925
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ ARG REDISHOST
ARG REDISUSER
ARG REDISPORT
ARG REDISPASSWORD
ARG DEBUG
WORKDIR /build

View File

@ -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))
}