Files
digiserver/entrypoint.sh

11 lines
275 B
Bash

#!/bin/sh
# filepath: /home/ske087/digiserver/entrypoint.sh
# Initialize the database if it doesn't exist
if [ ! -f "/app/instance/dashboard.db" ]; then
echo "Initializing database..."
python init_db.py
fi
# Start Gunicorn
exec gunicorn -w 4 -b 0.0.0.0:5000 app:app