Heroku Django - Ошибка R10 (таймаут загрузки) -> Веб-процесс не смог привязаться к $PORT в течение 60 секунд после запуска

Недавно я развернул новую версию своего веб-приложения на Heroku с помощью команд git, а не через пользовательский интерфейс, используя подключение к GitHub. С тех пор я начал получать следующую ошибку:

Ошибка:

2022-04-25T06:19:06.351920+00:00 heroku[web.1]: Starting process with command `gunicorn -b 0.0.0.0:57903 app.wsgi --log-file -`
2022-04-25T06:20:06.803913+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-04-25T06:20:07.621791+00:00 heroku[web.1]: State changed from starting to crashed
2022-04-25T06:20:07.025631+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-04-25T06:20:07.541144+00:00 heroku[web.1]: Process exited with status 137

Now I'm not saying this is the cause but when I initially deployed the code, my website worked for around a day or two before this appeared. I have being trying to add ports to the procfile as people are suggesting but nothing seems to be working and I have never needed to do that in the past. It neither works with or without the -b tag.

Профиль:

release: ./release-tasks.sh
web: gunicorn -b 0.0.0.0:$PORT card_companion_v2.wsgi --log-file -
worker: python manage.py process_tasks

wsgi.py

import os
from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings.development')

application = get_wsgi_application()

Я использую tailwind, поэтому задействован node.js, поэтому я использую следующие билдпаки: heroku/nodejs и heroku/python в таком порядке.

Пожалуйста, дайте мне знать, если вам понадобится дополнительная информация.

Строительные журналы:

Вернуться на верх