Add native Heroku deployment (non-Docker) - switch from container to buildpack

This commit is contained in:
Eran Barkai 2025-12-04 15:09:11 +02:00
parent ede3f82143
commit af0c7f0b4b
3 changed files with 7 additions and 1 deletions

2
Procfile Normal file
View file

@ -0,0 +1,2 @@
web: python -m gunicorn -k uvicorn.workers.UvicornWorker -c pr_agent/servers/gunicorn_config.py --forwarded-allow-ips "*" pr_agent.servers.github_app:app

View file

@ -24,7 +24,9 @@ import os
#
# bind = '0.0.0.0:5000'
bind = '0.0.0.0:3000'
# Use Heroku's PORT env var if available, otherwise default to 3000
port = int(os.getenv('PORT', '3000'))
bind = f'0.0.0.0:{port}'
backlog = 2048
#

2
runtime.txt Normal file
View file

@ -0,0 +1,2 @@
python-3.12.10