Skip to content

Instantly share code, notes, and snippets.

@whittlem
Created August 19, 2021 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whittlem/6ba6c38ecb9253c30448e4750f8ca73b to your computer and use it in GitHub Desktop.
Save whittlem/6ba6c38ecb9253c30448e4750f8ca73b to your computer and use it in GitHub Desktop.
python-flask-run.py
import os
from app import app
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment