add code
This commit is contained in:
parent
f1da01193b
commit
b0a4567169
20 changed files with 1734 additions and 0 deletions
13
entrypoint.sh
Normal file
13
entrypoint.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue