Skip to content

Commit

Permalink
Update database URL format in compose.yaml and bind getService to con…
Browse files Browse the repository at this point in the history
…text in repl.ts
  • Loading branch information
jthoward64 committed Dec 2, 2024
1 parent d4cbbaf commit 25a7cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
UPLOAD_PATH: /data/serve/uploads
MAX_FILE_SIZE: 200
LOG_DIR: /data/logs
DATABASE_URL: postgres://danceblue:danceblue@postgres:5432/danceblue?schema=danceblue
DATABASE_URL: postgres://danceblue:danceblue@danceblue-${HOST_PREFIX:-}-postgres-1:5432/danceblue?schema=danceblue
SERVE_ORIGIN: https://${HOST_PREFIX:-}.danceblue.org
LOGGING_LEVEL: ${LOGGING_LEVEL:-info}
SUPER_ADMIN_LINKBLUE: ${SUPER_ADMIN_LINKBLUE}
Expand Down
2 changes: 2 additions & 0 deletions packages/server/src/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ for (const resolver of resolversList) {
replServer.context[resolver.name] = Container.get(resolver);
}

replServer.context.getService = Container.get.bind(Container);

replServer.context.prisma = Container.get(prismaToken);

replServer.context.env = getEnvironment();
Expand Down

0 comments on commit 25a7cf5

Please sign in to comment.