Deploy Flask app to Heroku
📰 Dev.to · Shun Yamada
Learn to deploy a Flask app to Heroku with Python 3.7.5, Flask 1.1.1, and essential tools like SQL Alchemy and Flask Migrate.
Action Steps
- Create a Flask application using Python 3.7.5 and Flask 1.1.1
- Install SQL Alchemy for database management
- Use Flask Migrate for database migration in production
- Initialize a Git repository for version control
- Create a Heroku account and set up a new application
- Deploy the Flask app to Heroku using Git
Who Needs to Know This
This tutorial is beneficial for backend developers and DevOps engineers who want to deploy their Flask applications to Heroku, ensuring a smooth production environment setup.
Key Insight
💡 Flask Migrate is essential for database migration in production, replacing `db.create_all()` for a more robust setup.
Share This
🚀 Deploy your Flask app to Heroku with ease! 🌟 Learn how to use Python 3.7.5, Flask 1.1.1, SQL Alchemy, and Flask Migrate for a seamless production setup.
Key Takeaways
Learn to deploy a Flask app to Heroku with Python 3.7.5, Flask 1.1.1, and essential tools like SQL Alchemy and Flask Migrate.
Full Article
Title: Deploy Flask app to Heroku
URL Source: https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo
Published Time: 2019-12-16T10:07:17Z
Markdown Content:
[Skip to content](https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo#main-content)
[](https://dev.to/)
[Powered by Algolia](https://www.algolia.com/developers/?utm_source=devto&utm_medium=referral)
[Log in](https://dev.to/enter?signup_subforem=1)[Create account](https://dev.to/enter?signup_subforem=1&state=new-user)
## DEV Community
19 Add reaction
13 Like 6 Unicorn 0 Exploding Head 0 Raised Hands 0 Fire
0 Jump to Comments 18 Save Boost
Copy link
Copied to Clipboard
[Share to X](https://twitter.com/intent/tweet?text=%22Deploy%20Flask%20app%20to%20Heroku%22%20by%20%40shyamady%20%23DEVCommunity%20https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo)[Share to LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo&title=Deploy%20Flask%20app%20to%20Heroku&summary=Flask%20is%20a%20customized-free%20framework.%20I%20have%20the%20Flask%20application%20deployed%20to%20Heroku.&source=DEV%20Community)[Share to Facebook](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo)[Share to Mastodon](https://s2f.kytta.dev/?text=https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo)
[Share Post via...](https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo#)[Report Abuse](https://dev.to/report-abuse)
[](https://dev.to/shyamady)
[Shun Yamada](https://dev.to/shyamady)
Posted on Dec 16, 2019
136
# Deploy Flask app to Heroku
[#flask](https://dev.to/t/flask)[#heroku](https://dev.to/t/heroku)[#python](https://dev.to/t/python)
Flask is a customized-free framework.
I have the Flask application deployed to Heroku.
## [](https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo#development) Development
* Python 3.7.5
* Flask 1.1.1
* SQL Alchemy
* Flask Migrate
When it comes to something tutorials, `db.create_all()` is useful. But this is not available to record when db migrated. So, you should use `Flask Migrate` if you run the application on production.
## [](https://dev.to/shyamady/d
URL Source: https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo
Published Time: 2019-12-16T10:07:17Z
Markdown Content:
[Skip to content](https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo#main-content)
[](https://dev.to/)
[Powered by Algolia](https://www.algolia.com/developers/?utm_source=devto&utm_medium=referral)
[Log in](https://dev.to/enter?signup_subforem=1)[Create account](https://dev.to/enter?signup_subforem=1&state=new-user)
## DEV Community
19 Add reaction
13 Like 6 Unicorn 0 Exploding Head 0 Raised Hands 0 Fire
0 Jump to Comments 18 Save Boost
Copy link
Copied to Clipboard
[Share to X](https://twitter.com/intent/tweet?text=%22Deploy%20Flask%20app%20to%20Heroku%22%20by%20%40shyamady%20%23DEVCommunity%20https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo)[Share to LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo&title=Deploy%20Flask%20app%20to%20Heroku&summary=Flask%20is%20a%20customized-free%20framework.%20I%20have%20the%20Flask%20application%20deployed%20to%20Heroku.&source=DEV%20Community)[Share to Facebook](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo)[Share to Mastodon](https://s2f.kytta.dev/?text=https%3A%2F%2Fdev.to%2Fshyamady%2Fdeploy-flask-app-to-heroku-2ceo)
[Share Post via...](https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo#)[Report Abuse](https://dev.to/report-abuse)
[](https://dev.to/shyamady)
[Shun Yamada](https://dev.to/shyamady)
Posted on Dec 16, 2019
136
# Deploy Flask app to Heroku
[#flask](https://dev.to/t/flask)[#heroku](https://dev.to/t/heroku)[#python](https://dev.to/t/python)
Flask is a customized-free framework.
I have the Flask application deployed to Heroku.
## [](https://dev.to/shyamady/deploy-flask-app-to-heroku-2ceo#development) Development
* Python 3.7.5
* Flask 1.1.1
* SQL Alchemy
* Flask Migrate
When it comes to something tutorials, `db.create_all()` is useful. But this is not available to record when db migrated. So, you should use `Flask Migrate` if you run the application on production.
## [](https://dev.to/shyamady/d
DeepCamp AI