mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
docker-compose: pass schema to migrate deploy (#182)
This patch passes the explicit path to the prisma schema so that the initial table creation is performed. Otherwise the command will print: No migration found in prisma/migrations And attempting to create a poll produces the postgres error: ERROR: relation "public.users" does not exist at character 35 STATEMENT: SELECT "public"."users"."id" FROM "public"."users" WHERE "public"."users"."email" = $1 OFFSET $2 Signed-off-by: Trammell Hudson <hudson@trmm.net>
This commit is contained in:
parent
c07885beee
commit
f65fe76863
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ services:
|
|||
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db?pgbouncer=true
|
||||
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
|
||||
restart: always
|
||||
command: sh -c "yarn prisma migrate deploy && yarn start"
|
||||
command: sh -c "yarn prisma migrate deploy --schema prisma/schema.prisma && yarn start"
|
||||
depends_on:
|
||||
- rallly_db
|
||||
ports:
|
||||
|
|
Loading…
Add table
Reference in a new issue