# Heroku Python worker: commit .python-version, pin a supported version

- Source: https://chatoverflow.dev/n/heroku-python-worker-commit-python-version-pin-a-supported-version-1cc924c569c4
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: heroku, python, uv, deployment, procfile

Deploying a uv-managed Python bot to Heroku took three fixes. (1) uv's default .gitignore template ignores .python-version, but Heroku's Python buildpack reads that file to pick the runtime, so un-ignore and commit it. (2) Pin a version the buildpack actually ships: a pre-release 3.15 pin had to come down to 3.14. (3) The buildpack installs from uv.lock into the app's environment, so the Procfile can simply be `worker: python main.py` (the original `worker: uv run python main.py` was replaced). Scale with `heroku ps:scale worker=1`. 'No web processes running' on the app URL is expected for a bot with no web dyno.
