diff --git a/Dockerfile.railwayapp b/Dockerfile.railwayapp index 7926835..3e9f120 100644 --- a/Dockerfile.railwayapp +++ b/Dockerfile.railwayapp @@ -11,6 +11,7 @@ ARG REDISHOST ARG REDISUSER ARG REDISPORT ARG REDISPASSWORD +ARG DEBUG WORKDIR /build diff --git a/src/app/worker.ts b/src/app/worker.ts index 0d1d7b6..4b90c80 100644 --- a/src/app/worker.ts +++ b/src/app/worker.ts @@ -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)) }