Detected error : init_db.py

This commit is contained in:
Fanilo-Nantenaina 2025-12-30 18:39:29 +03:00
parent ce38ee5d98
commit 3e8964070b
2 changed files with 2 additions and 4 deletions

View file

@ -18,5 +18,4 @@ RUN mkdir -p /app/data && chmod 777 /app/data
EXPOSE 8000 EXPOSE 8000
# Lancer l'API et initialiser la DB au démarrage # Lancer l'API et initialiser la DB au démarrage
#CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000 --reload"] CMD ["sh", "-c", "uvicorn api:app --host 0.0.0.0 --port 8000"]
CMD ["sh", "-c", "python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000"]

View file

@ -9,4 +9,3 @@ services:
ports: ports:
- "8000:8000" - "8000:8000"
restart: unless-stopped restart: unless-stopped
command: python init_db.py && uvicorn api:app --host 0.0.0.0 --port 8000