Skip to content

Commit

Permalink
Don’t regenerate client, deploy schema only
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoli Nicolae <[email protected]>
  • Loading branch information
anatolinicolae committed Mar 21, 2024
1 parent 24ac3c1 commit b8bb636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# run, which is why this file exists in the first place.
# Learn more: https://community.fly.io/t/sqlite-not-getting-setup-properly/4386

# Generate schema and deploy
npm run setup:db
# Deploy database schema
npm run db:deploy

# Start the app
npm run start
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"db:diff": "prisma migrate diff --from-url=${DATABASE_URL} --to-migrations=./app/database/migrations --shadow-database-url=${SHADOW_DATABASE_URL} --script > rollback.sql",
"db:prepare-migration": "prisma generate && prisma migrate dev --create-only --skip-seed",
"db:generate-type": "prisma generate",
"db:deploy": "prisma migrate deploy",
"db:deploy-migration": "prisma migrate deploy && prisma generate",
"db:deploy-migration:staging": "dotenv -e .env.staging -- prisma migrate deploy && prisma generate",
"db:deploy-migration:production": "dotenv -e .env.production -- prisma migrate deploy && prisma generate",
Expand Down

0 comments on commit b8bb636

Please sign in to comment.