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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user