diff --git a/app.py b/app.py index bc711e3..6ddb6cf 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/docker-compose.yml b/docker-compose.yml index e77cc58..d4cee92 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +#version: '"1.1.0"' services: web: image: digiserver:latest diff --git a/entrypoint.sh b/entrypoint.sh index 50757ec..0d62989 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \ No newline at end of file +# Create necessary directories +mkdir -p static/uploads static/resurse + +# Start the application +exec flask run --host=0.0.0.0 \ No newline at end of file