Initial commit
This commit is contained in:
12
run.sh
Executable file
12
run.sh
Executable 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
|
||||
Reference in New Issue
Block a user