updated whit entrypoint
This commit is contained in:
11
entrypoint.sh
Normal file
11
entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user