From 86300233a1383fdc0b8303afad27f3e4a8f6f05d Mon Sep 17 00:00:00 2001 From: karafra Date: Mon, 18 Jul 2022 04:15:56 +0200 Subject: [PATCH 1/3] :pecnil2: Fix typos --- config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yml b/config.yml index 9b0985f..b6bed5b 100644 --- a/config.yml +++ b/config.yml @@ -7,6 +7,6 @@ openAi: amqp: url: "{AMQP_URL}" discord: - token: "{DISCORD_TOKEN}" + token: "{TOKEN}" deploy: port: "{PORT}" \ No newline at end of file From d47d71641e3acc63e704d0a6cbc3b48a8919da94 Mon Sep 17 00:00:00 2001 From: karafra Date: Mon, 18 Jul 2022 04:16:19 +0200 Subject: [PATCH 2/3] :whale: Remove unused vars --- docker/deploy/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docker/deploy/Dockerfile b/docker/deploy/Dockerfile index e86af1d..f27fd1b 100644 --- a/docker/deploy/Dockerfile +++ b/docker/deploy/Dockerfile @@ -6,10 +6,7 @@ ENV TOKEN="$DISCORD_TOKEN" ENV AMQP_URL="amqp://guest:guest@rabbitmq:5672" -ENV SENTRY_DNS="https://fecb41917abe418f8aff855ea674fddf@o970705.ingest.sentry.io/6501050" - -ARG DISCORD_BOTID -ENV BOTID="$DISCORD_BOTID" +ENV SENTRY_DSN="https://fecb41917abe418f8aff855ea674fddf@o970705.ingest.sentry.io/6501050" ARG OPEN_AI_TOKEN ENV OPEN_API_TOKEN="$OPEN_AI_TOKEN" From 70cea84499f0732294454e9c8dd5f3e52b9c12d8 Mon Sep 17 00:00:00 2001 From: karafra Date: Mon, 18 Jul 2022 04:16:33 +0200 Subject: [PATCH 3/3] :rocket: Add deafult port to bind to --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index f080a33..d0580d8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,7 +8,7 @@ async function bootstrap() { const configurationService: ConfigService = app.get(ConfigService); const logger = new Logger('Bootstrap'); - const port = configurationService.get('deploy.port'); + const port = configurationService.get('deploy.port', 5000); await app.listen(port, () => logger.log(`🚀 App running on port ${port}`)); } bootstrap();