13 lines
356 B
Bash
Executable File
13 lines
356 B
Bash
Executable File
#!/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
|