From a74a3b9f6eef946ceb4c82d3f8e9db60a4be3b61 Mon Sep 17 00:00:00 2001 From: Mia von Steinkirch Date: Tue, 29 Oct 2019 19:04:03 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B1=F0=9F=8F=BB=E2=80=8D=E2=99=80?= =?UTF-8?q?=EF=B8=8FSome=20notes=20in=20Flask?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cloud_and_K8s_Hacking/intro_heroku.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Cloud_and_K8s_Hacking/intro_heroku.md b/Cloud_and_K8s_Hacking/intro_heroku.md index 577e664..f393117 100644 --- a/Cloud_and_K8s_Hacking/intro_heroku.md +++ b/Cloud_and_K8s_Hacking/intro_heroku.md @@ -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 Heroku’s 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!