Skip to content

Instantly share code, notes, and snippets.

@maksimKorzh
Created August 2, 2019 09:37
Show Gist options
  • Select an option

  • Save maksimKorzh/8ff57f61ab69e4d6f5f7d02ab8cc0662 to your computer and use it in GitHub Desktop.

Select an option

Save maksimKorzh/8ff57f61ab69e4d6f5f7d02ab8cc0662 to your computer and use it in GitHub Desktop.
# 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