在heroku foreman错误上部署django app

时间:2014-06-18 13:45:25

标签: python django heroku foreman

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

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

在Proc文件中:

web: gunicorn hellodjango.wsgi

hellodjango / 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

0 个答案:

没有答案