fix(backend): تشغيل الهجرات على dist المترجَم بدل ts-node في صورة الإنتاج
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user