mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-26 10:39:08 -04:00
👱🏻♀️Some notes in Flask
This commit is contained in:
parent
981eb03adc
commit
a74a3b9f6e
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user