Restore git-pull-only deploy: single compose path with schema from git

Deploy is back to the flow that worked: build dist locally, push, then on the
server only `git pull` + `docker compose up -d --build`. The Dockerfile now
also takes prisma/ and package.json from git and runs `prisma generate`, so
schema and migration changes ship without rebuilding the 120MB node_modules
bundle. Removes the prebuilt compose path, which could never work on a server
without npm.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 16:14:53 +03:30
co-authored by Cursor
parent a0da04e1ae
commit 811f671e78
6 changed files with 36 additions and 84 deletions
-11
View File
@@ -3,24 +3,13 @@
*
!deploy-bundle.tar.gz
!Dockerfile
!Dockerfile.prebuilt
!Dockerfile.bundle
!Dockerfile.dist
!docker-compose.yml
!docker-compose.prebuilt.yml
!docker-compose.bundle.yml
!docker-compose.dist.yml
!docker-entrypoint.sh
!dist
!dist/**
# برای Dockerfile.prebuilt (بیلد لوکال + اجرا روی سرور)
!package.json
!package-lock.json
!prisma
!prisma/**
!prisma.config.ts
!node_modules
!node_modules/**
!.env.example