Created
May 20, 2019 21:27
-
-
Save moshfiqur/772d847650f319bd6167b9a67660021a to your computer and use it in GitHub Desktop.
Docker entrypoint script for Demo Flask App deployed on Google App Engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# perform the data migration | |
flask db migrate | |
flask db upgrade | |
if [ "$FLASK_ENV" == "development" ]; then | |
flask run --host=0.0.0.0 --port=8080 | |
else | |
gunicorn --bind=0.0.0.0:8080 run:app | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment