DEV Community

Cover image for How to Deploy a Python Flask App on Heroku Using Docker
Evan J
Evan J

Posted on • Updated on

How to Deploy a Python Flask App on Heroku Using Docker

Liquid syntax error: Unknown tag 'endraw'

Top comments (4)

Collapse
 
krzysztofwelc profile image
Krzysztof Welc

hello, what;s the point of having

if __name__ == '__main__'

in app.py if Procfile runs main.py?

Collapse
 
ejach profile image
Evan J

That is an excellent point.
I have become so accustomed to writing that line in every Python file I create that I include that no matter what. I will update the article with this change to reduce redundancy, thank you for the insight!

Collapse
 
devarjunan profile image
dev-arjunan

Great. Thanks for sharing this article.

Collapse
 
ejach profile image
Evan J

Of course!