Created
June 29, 2021 00:48
-
-
Save tbanj/55f31385ccb007ea8ebb9fa6eec4b225 to your computer and use it in GitHub Desktop.
Guide to deploy a flask application built in Anaconda environment to Heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step by step guide to deploy a flask application which was developed within anaconda virtual environment to Heroku server | |
At the root of your project | |
pip freeze > requirements.txt | |
# edited the content of the requirements.txt e.g | |
From | |
Jinja2 @ file:///tmp/build/80754af9/jinja2_1624781299557/work | |
To | |
Jinja2==3.0.1 | |
# you can have access to the packages version with command | |
pip freeze | |
Once you are through substituting the url to the version number of each package found in the requirement.txt file then proceed with | |
git add . | |
git commit -m "comment" | |
heroku login | |
git push heroku master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment