在heroku foreman上部署Django应用程序

2024-05-16 04:03:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着在heroku服务器上运行我的django应用程序。我的空django应用程序结构

- hellodjango/
- manage.py
- Procfile
- requirements.txt
- venv/

在进程文件中:

web: gunicorn hellodjango.wsgi

你好,詹戈/wsgi.py公司地址:

from django.core.wsgi import get_wsgi_application
from dj_static import Cling

application = Cling(get_wsgi_application())

我运行命令:

source venv/bin/activate
foreman start

还有我的错误:

16:57:12 web.1  | started with pid 3001
16:57:13 web.1  | exited with code 3
16:57:13 system | sending SIGTERM to all processes

Tags: djangofrompyimport服务器应用程序wsgiget