updated whit entrypoint

This commit is contained in:
2025-05-28 21:08:09 +03:00
parent 87a9c77ee0
commit 2e94a334de
3 changed files with 19 additions and 7 deletions

11
entrypoint.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
# filepath: /home/ske087/digiserver/entrypoint.sh
# Initialize the database if it doesn't exist
if [ ! -f "/app/instance/dashboard.db" ]; then
echo "Initializing database..."
python init_db.py
fi
# Start Gunicorn
exec gunicorn -w 4 -b 0.0.0.0:5000 app:app