Skip to content

Instantly share code, notes, and snippets.

@osantana
Last active April 9, 2021 22:30
Show Gist options
  • Save osantana/b09ea1221c393e6ac5c6d18e90265361 to your computer and use it in GitHub Desktop.
Save osantana/b09ea1221c393e6ac5c6d18e90265361 to your computer and use it in GitHub Desktop.
heroku-poetry-deployment-makefile
# :
# :
youplanny/poetry.lock: pyproject.toml
poetry lock
requirements.txt: poetry.lock
poetry export --without-hashes -f requirements.txt -o requirements.txt
deploy: requirements.txt
# here you can check if we have a clean workdir and checkout master branch
git add requirements.txt
git commit -m "Update requirements.txt with the project dependencies in pyproject.toml"
git push heroku master
# :
# :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment