updated versions and players

This commit is contained in:
2025-06-29 16:48:15 +03:00
parent 73c41303a9
commit 68cc47882c
3 changed files with 12 additions and 11 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/sh
# filepath: /home/ske087/digiserver/entrypoint.sh
#!/bin/bash
set -e
# Initialize the database if it doesn't exist
if [ ! -f "/app/instance/dashboard.db" ]; then
echo "Initializing database..."
python init_db.py
fi
# Initialize the database and run migrations
flask db upgrade
# Start Gunicorn
exec gunicorn -w 4 -b 0.0.0.0:5000 app:app
# Create necessary directories
mkdir -p static/uploads static/resurse
# Start the application
exec flask run --host=0.0.0.0