无法让django heroku正常运行。如何解决错误代码=H14 desc=";没有正在运行的web进程;?

无法让django heroku正常运行。如何解决错误代码=H14 desc=";没有正在运行的web进程;?,django,heroku,django-rest-framework,Django,Heroku,Django Rest Framework,我以前在Heroku上运行过这个应用程序,没有任何问题。但自从我部署以来已经6个月了,我还将计算机从Linux切换到了Windows机器 现在,当我部署时,部署成功了,但服务不起作用。当我检查日志时,错误是: code=H14 desc=“没有正在运行的web进程” 我没有改变Procfile或requirements.txt,因为它一直在工作 requirements.txt: django gunicorn django-heroku requests djangorestframework

我以前在Heroku上运行过这个应用程序,没有任何问题。但自从我部署以来已经6个月了,我还将计算机从Linux切换到了Windows机器

现在,当我部署时,部署成功了,但服务不起作用。当我检查日志时,错误是: code=H14 desc=“没有正在运行的web进程”

我没有改变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构建包:清除 heroku ps:scale web=1


所有这些似乎都没有改变什么。在此方面的任何帮助都将不胜感激

如错误所示,您的应用程序没有运行任何web进程。 使用以下命令可以从CLI查看所有正在运行的进程:

heroku ps -a <your app name>
heroku ps-a
并通过以下方式将web进程扩展到1:

heroku ps:scale web=1 -a <your app name>
heroku ps:scale web=1-a 这将启动应用程序的一个实例。
请参见初始化heroku git文件中的。

,该文件位于与我之前使用的目录不同的目录中。导致应用程序找不到程序文件