From aa2ba61be8f14b3087e07fdb140c094f1b237ad2 Mon Sep 17 00:00:00 2001 From: Ske087 Date: Sun, 9 Feb 2025 18:56:23 +0200 Subject: [PATCH] updated with save --- docker-compose.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c58d452..5734442 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,8 @@ services: - SECRET_KEY=Ma_Duc_Dupa_Merele_Lui_Ana volumes: - .:/app - - ./data/db:/app/instance - - ./data/static:/app/static/uploads - command: sh -c "python clear_db.py && python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app" \ No newline at end of file + - /home/ske087/digi-server/db:/app/instance + - /home/ske087/digi-server/static:/app/static/uploads + # when setting allready exist and data are setted and is performed an update use second line of command + #command: sh -c "python clear_db.py && python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app" + command: sh -c "python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app" \ No newline at end of file