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>
16 lines
284 B
Plaintext
16 lines
284 B
Plaintext
# پیشفرض همه چیز ignore؛ فقط آنچه برای Docker لازم است را باز کن
|
|
|
|
*
|
|
!deploy-bundle.tar.gz
|
|
!Dockerfile
|
|
!docker-compose.yml
|
|
!docker-entrypoint.sh
|
|
!dist
|
|
!dist/**
|
|
!package.json
|
|
!package-lock.json
|
|
!prisma
|
|
!prisma/**
|
|
!prisma.config.ts
|
|
!.env.example
|