【发布时间】:2020-02-05 07:52:09
【问题描述】:
我之前在 Heroku 上运行过这个应用程序没有问题。但是自从我部署以来已经过去了大约 6 个月,我还将计算机从 Linux 切换到了 Windows 计算机。
现在当我部署时,部署成功但服务不起作用。当我检查日志时,错误是: code=H14 desc="没有网络进程在运行"
Procfile 或 requirements.txt 一直在工作,我没有更改它
requirements.txt:
django
gunicorn
django-heroku
requests
djangorestframework
django-cors-headers
flask-sslify
过程文件:
release: python manage.py migrate
web: gunicorn findtheirgifts.wsgi --log-file -
wsgi.py
"""
WSGI config for findtheirgifts project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "findtheirgifts.settings")
application = get_wsgi_application()
我已经尝试过类似主题的一些建议 heroku ps:重启 heroku buildpacks:清除 heroku ps:scale web=1
这些似乎都没有改变任何东西。对此的任何帮助将不胜感激!
【问题讨论】:
标签: django heroku django-rest-framework