👱🏻‍♀️Some notes in Flask

This commit is contained in:
Mia von Steinkirch 2019-10-29 19:04:03 -07:00 committed by GitHub
parent 981eb03adc
commit a74a3b9f6e

View File

@ -1,11 +1,11 @@
# Deploying a Flask App at Heroku
I was playing with Flask, and I wrote my own [Anti-Social Network](https://anti-social.herokuapp.com/).
Heroku platform is very flexible, and it supports several programming languages. To
deploy an application to Heroku, use Git to push the application to Herokus server.
This document shows how to deploy [Anti-Social Network](https://anti-social.herokuapp.com/).
# Running in a Production Server
Heroku does not provide a web server, but it expects it to start their own servers and listen on the port number set in environment variable PORT. Flask will perform very poorly because it was not designed to run in a production environment. To improve this, you may use a production-ready web server such as Gunicorn.
@ -197,7 +197,3 @@ $ heroku restart
That's it! The app should be running at ```< app-name >.herokuapp.com```.
---
Enjoy! This article was originally posted [here](https://coderwall.com/p/pstm1w/deploying-a-flask-app-at-heroku), and it has over 43k views!