Commit Graph
7 Commits
Author SHA1 Message Date
mohmdsdgandCursor d5dfd6a0f0 Ship prebuilt Prisma client so the server never runs prisma generate
prisma generate needs over three minutes on the production host, which made
every deploy hang on that build step. The client is now generated on the dev
machine into prisma-client.tar.gz (tracked, 8.5MB) and the image just untars
it. Dropping the unused linux-musl engine target halves that payload.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 16:35:06 +03:30
mohmdsdgandCursor 25d9038632 Keep prisma in production dependencies for container migrate.
Prebuilt images copy host node_modules; with omit=dev the CLI was missing and the API crash-looped.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 15:54:23 +03:30
mohmdsdgandCursor 345a4a4708 Add SMS OTP, harden auth, and fix order/checkout server bugs.
Ship 4-digit OTP with rate-limit attempts, Tehran-safe expiry/rass math, larger JSON body limit for check images, and safer order pricing/status guards. Include rebuilt dist for prebuilt deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 14:55:26 +03:30
mohmdsdgandCursor 44f030bc06 Clean tsbuildinfo before nest build to avoid empty dist
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:38:33 +03:30
mohmdsdgandCursor cbcea58e94 Deploy via committed dist: local Nest build, server runs with .env
Build on the developer machine without Docker, commit dist/, and run on the server with Dockerfile.dist plus compose env_file.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:35:22 +03:30
mohmdsdgandCursor 1fdbae1791 Add local Docker image build and export for server deploy
Build and gzip the API image on a machine with good network, then docker load on the server without remote npm builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:28:35 +03:30
mohmdsdgandCursor 9f0422c1db Add NestJS fabric trade API with Prisma and Docker
Provide backend for admin and user apps with Postgres, migrations, seed data, and docker-compose for LiteSpeed reverse-proxy deployment.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 20:26:39 +03:30