fix(backend): تشغيل الهجرات على dist المترجَم بدل ts-node في صورة الإنتاج

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 15:37:07 +03:00
co-authored by Claude Opus 4.8
parent 95fea546f5
commit 951f6d80e1
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -13,6 +13,9 @@ docker compose up -d --build # يبني ويشغّل: postgres/postgis, redis,
```bash
docker compose exec api npm run migration:run
```
> الهجرات تعمل على النسخة المترجمة `dist/config/data-source.js` (صورة الإنتاج بلا ts-node).
> لو ما رفعت آخر نسخة بعد، شغّل مباشرة:
> `docker compose exec api node_modules/.bin/typeorm migration:run -d dist/config/data-source.js`
## فحص سريع
```bash