Skip to content

Skeleton code for a PDM based project to be deployed on heroku

Notifications You must be signed in to change notification settings

tuergeist/heroku-pdm-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku PDM Example (project skeleton)

Heroku buildpacks for Python (version 20 or 22) do not yet support PDM out of the box. (See Heroku docs)

This repo provides a workaround.

tl;dr

This example provides a requirements.txt with just pdm in it. The Procfile installs the environment from pyproject.toml and runs the service (unicorn-fastapi)

Deploy

How to use this repository

  • checkout the repo
  • cd into the repo
  • rm -rf .git
  • then you can create a new git repo with git init .
  • add your code
  • git add .
  • git commit -m 'initial'
  • configure heroku
    • heroku create example-pdm-app-foobar
    • heroku git:remote -a example-pdm-app-foobar
    • git push heroku main will deploy the app
    • heroku logs --tail to see the logfiles

About

Skeleton code for a PDM based project to be deployed on heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published