Skip to content

Commit f6e23e9

Browse files
committed
Ensure failed migrations fail deployment by not swallowing exit codes in entrypoint.sh
1 parent 3d6cfe5 commit f6e23e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docker/scripts/entrypoint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
set -x
2+
set -xe
33

44
if [ -n "$DATABASE_HOST" ]; then
55
scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
@@ -8,10 +8,9 @@ fi
88
# Run migrations
99
pnpm --filter @trigger.dev/database db:migrate:deploy
1010

11-
# Copy over required prisma files and invoke bundled seed file
11+
# Copy over required prisma files
1212
cp packages/database/prisma/schema.prisma apps/webapp/prisma/
1313
cp node_modules/@prisma/engines/*.node apps/webapp/prisma/
14-
pnpm --filter webapp db:seed
1514

1615
cd /triggerdotdev/apps/webapp
1716
# exec dumb-init pnpm run start:local

0 commit comments

Comments
 (0)