Skip to content

Commit

Permalink
fix: Configure cron db from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Apr 2, 2024
1 parent b7d43e1 commit 8553864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ services:
PGUSER: postgres
PGPASSWORD: postgrespassword
PGDATABASE: postgres
CRON_DATABASE: postgres
PORT: 9180
AWS_REGION: eu-central-1
AWS_ACCESS_KEY_ID:
Expand Down
3 changes: 1 addition & 2 deletions runner/src/provisioner/provisioner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import HasuraClient from '../hasura-client';
import PgClientClass from '../pg-client';

const DEFAULT_PASSWORD_LENGTH = 16;
const CRON_DATABASE = 'cron';

const adminDefaultPgClientGlobal = new PgClientClass({
user: process.env.PGUSER,
Expand All @@ -20,7 +19,7 @@ const adminDefaultPgClientGlobal = new PgClientClass({
const adminCronPgClientGlobal = new PgClientClass({
user: process.env.PGUSER,
password: process.env.PGPASSWORD,
database: CRON_DATABASE,
database: process.env.CRON_DATABASE,
host: process.env.PGHOST,
port: Number(process.env.PGPORT),
});
Expand Down

0 comments on commit 8553864

Please sign in to comment.