Files
digifi-BankToProductCore/scripts/entrypoint.sh
T

9 lines
188 B
Bash
Executable File

#!/bin/sh
echo "Running DB migrations..."
flask db migrate -m "Migration on $(date)"
flask db upgrade
echo "Starting Gunicorn server..."
exec gunicorn -w 4 -b 0.0.0.0:5000 wsgi:wsgi_app