This commit is contained in:
Timothy Rogers 2024-11-10 16:01:57 -05:00
parent f1da01193b
commit b0a4567169
20 changed files with 1734 additions and 0 deletions

13
entrypoint.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
# Wait for database to be ready (if using PostgreSQL)
# until PGPASSWORD=$DATABASE_PASSWORD psql -h "$DATABASE_HOST" -U "$DATABASE_USER" -d "$DATABASE_NAME" -c '\q'; do
# echo "Waiting for database..."
# sleep 1
# done
# Apply database migrations
flask db upgrade
# Start gunicorn
exec gunicorn --bind 0.0.0.0:5000 app:app