Initial commit

This commit is contained in:
2025-05-31 14:50:40 +00:00
commit f61df12e5d
14 changed files with 1128 additions and 0 deletions

12
run.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bashio
# Set up environment variables
export LOG_LEVEL=$(bashio::config 'log_level')
export DATABASE_PATH=$(bashio::config 'database_path')
# Ensure data directory exists
mkdir -p "$(dirname "$DATABASE_PATH")"
# Start the Flask application with gunicorn
cd /app
exec gunicorn --bind 0.0.0.0:8099 --workers 2 --threads 4 main:app