mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update Dockerfile to correctly copy and execute the entrypoint script, revert CMD to node dist/index.js, and update the SOLUTION_IMMEDIATE.md and add fix-docker-entrypoint.sh to address the 'exec /app/scripts/docker-entrypoint.sh: no such file or directory' error by manually applying database migrations for DLC products. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f9197b9b-a5b3-4469-a27d-930a9e9ee736 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/f9197b9b-a5b3-4469-a27d-930a9e9ee736/i2gFnxm
1.4 KiB
1.4 KiB
SOLUTION IMMÉDIATE - Migration DLC Production
Problème
exec /app/scripts/docker-entrypoint.sh: no such file or directory
Solution Rapide (2 minutes)
ÉTAPE 1: Appliquer la migration directement
# Sur votre serveur de production, exécutez :
docker-compose exec logiflow-db psql -U logiflow_admin -d logiflow_db -c "
ALTER TABLE dlc_products
ADD COLUMN IF NOT EXISTS stock_epuise boolean DEFAULT false NOT NULL,
ADD COLUMN IF NOT EXISTS stock_epuise_by varchar(255),
ADD COLUMN IF NOT EXISTS stock_epuise_at timestamp;
CREATE INDEX IF NOT EXISTS idx_dlc_products_stock_epuise ON dlc_products(stock_epuise);
"
ÉTAPE 2: Redémarrer l'application
docker-compose restart logiflow
Alternative avec script automatique
# Utilisez le script de correction :
chmod +x fix-docker-entrypoint.sh
./fix-docker-entrypoint.sh
Vérification
# Vérifier que les colonnes existent :
docker-compose exec logiflow-db psql -U logiflow_admin -d logiflow_db -c "
SELECT column_name FROM information_schema.columns
WHERE table_name='dlc_products'
AND column_name LIKE '%stock_epuise%';
"
Résultat attendu :
column_name
-----------------
stock_epuise
stock_epuise_by
stock_epuise_at
Après cette correction
- ✅ L'erreur "column does not exist" disparaîtra
- ✅ L'interface DLC fonctionnera
- ✅ Les boutons stock épuisé seront opérationnels