mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-14 10:49:10 +02:00
Remove the custom entrypoint script from the Dockerfile, disabling its execution on container startup and allowing the application to start directly. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
37 lines
1.5 KiB
Markdown
37 lines
1.5 KiB
Markdown
# 🚨 CORRECTION URGENTE - ERREUR DOCKER ENTRYPOINT
|
|
|
|
## Problème actuel
|
|
Le conteneur Docker ne peut pas démarrer à cause de l'erreur :
|
|
```
|
|
exec /app/docker-entrypoint.sh: no such file or directory
|
|
```
|
|
|
|
## 🔧 Solution immédiate (1 commande)
|
|
|
|
**Créer directement la table announcements :**
|
|
```bash
|
|
docker exec logiflow-logiflow-1 psql $DATABASE_URL -c "CREATE TABLE IF NOT EXISTS announcements (id SERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL, content TEXT NOT NULL, priority VARCHAR(20) NOT NULL DEFAULT 'normal', author_id VARCHAR(255) NOT NULL, group_id INTEGER, created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(), updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(), CONSTRAINT announcements_priority_check CHECK (priority IN ('normal', 'important', 'urgent')), CONSTRAINT announcements_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT announcements_group_id_fkey FOREIGN KEY (group_id) REFERENCES groups(id) ON DELETE CASCADE);"
|
|
```
|
|
|
|
## 🛠️ Correction du Docker (pour arrêter les erreurs)
|
|
|
|
**Reconstruire le conteneur avec le Dockerfile corrigé :**
|
|
```bash
|
|
# Arrêter le conteneur actuel
|
|
docker-compose down
|
|
|
|
# Reconstruire sans entrypoint
|
|
docker-compose up --build -d
|
|
```
|
|
|
|
## ✅ Résultat
|
|
- Table announcements créée
|
|
- Conteneur Docker fonctionnel
|
|
- Plus d'erreurs d'entrypoint
|
|
- Système d'annonces opérationnel
|
|
|
|
## 📋 Vérification
|
|
```bash
|
|
# Vérifier que la table existe
|
|
docker exec logiflow-logiflow-1 psql $DATABASE_URL -c "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name='announcements');"
|
|
``` |