as64
I have gunicorn in my requirements.txt. A gunicorn.py file that contains config. & the procfile reads
web: gunicorn -c ./gunicorn.py myapp.wsgi
but i'm getting an error post deploy:
'gunicorn.app'; 'gunicorn' is not a packageu0002u0000u0000u0000u0000u0000u0000B 2023-10-29T17:42:09.278526909Z Traceback (most recent call last):u0002u0000u0000u0000u0000u0000u0000^ 2023-10-29T17:42:09.278566996Z File "/app/.heroku/python/bin/gunicorn", line 5, in u0002u0000u0000u0000u0000u0000u0000H 2023-10-29T17:42:09.278646615Z from gunicorn.app.wsgiapp import runu0002u0000u0000u0000u0000u0000u0000p 2023-10-29T17:42:09.278657612Z ModuleNotFoundError: No module named 'gunicorn.app'; 'gunicorn' is not a package"
Qoddi
Hi there!
I believe the proper way to call gunicorn from the Procfile is:
web: gunicorn --chdir my_folder my_module:app
That being said you should contact the support team if you can't have your app run as they may help more by checking your configuration and details that can't be done on a public forum.
Thanks!