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

4
app.py
View File

@@ -38,8 +38,8 @@ from utils.uploads import (
)
# Define global variables for server version and build date
SERVER_VERSION = "1.0.0"
BUILD_DATE = "2025-06-25"
SERVER_VERSION = "1.1.0"
BUILD_DATE = "2025-06-29"
app = Flask(__name__, instance_relative_config=True)

View File

@@ -1,3 +1,4 @@
#version: '"1.1.0"'
services:
web:
image: digiserver:latest

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