Document production deploy gotchas for SMS, Postgres, and shared symlink.

Capture real server lessons so future updates avoid DATABASE_URL, tarball, and nginx traps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 10:00:21 +03:30
co-authored by Cursor
parent c2bfa7749d
commit 3b50f14817
3 changed files with 113 additions and 32 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ CORS_ORIGIN=https://crm.montzar.ir
JWT_SECRET=change-me-long-random-production-secret
JWT_EXPIRES_IN=7d
# Postgres روی همین سرور — دیتابیس جدا برای CRM (به DB مونتایم دست نزنید)
DATABASE_URL="postgresql://mento:CHANGE_ME@127.0.0.1:5432/mento_crm?schema=public"
# Postgres روی همین سرور — پورت واقعی این هاست معمولاً 15432 است (نه 5432)
DATABASE_URL="postgresql://mento:CHANGE_ME@127.0.0.1:15432/mento_crm?schema=public"
UPLOAD_DIR=/var/www/crm/uploads