Created
August 2, 2019 09:37
-
-
Save maksimKorzh/8ff57f61ab69e4d6f5f7d02ab8cc0662 to your computer and use it in GitHub Desktop.
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
| # login to heroku | |
| heroku login | |
| # init empty repo | |
| git init | |
| # create app | |
| heroku create your-first-heroku-app --buildpack heroku/python | |
| # add remote git | |
| heroku git:remote -a your-first-heroku-app | |
| # requirements.txt with gunicorn server in it is needed to work | |
| # create "Procfile" in the project root containing | |
| web: gunicorn app:app // app.py/app instance name | |
| # commit changes | |
| git add . | |
| git commit -m "First commit for heroku" | |
| git push heroku master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment