Heroku Procfile不会运行Django应用程序

时间:2015-12-23 21:33:53

标签: python django heroku

我试图使用我的Heroku Procfile在本地启动我的Django应用程序。但它错误地显示以下消息:

forego | starting web.1 on port 5000
web.1  | [2015-12-23 13:27:19 -0800] [8313] [INFO] Starting gunicorn 19.3.0
web.1  | [2015-12-23 13:27:19 -0800] [8313] [INFO] Listening at: http://0.0.0.0:5000 (8313)
web.1  | [2015-12-23 13:27:19 -0800] [8313] [INFO] Using worker: sync
web.1  | [2015-12-23 13:27:19 -0800] [8317] [INFO] Booting worker with pid: 8317
web.1  | [2015-12-23 13:27:19 -0800] [8317] [ERROR] Exception in worker process:
web.1  | til.py", line 355, in import_app
web.1  | ortlandpython/lib/python3.5/site-packages/gunicorn/util.py", line 355, in import_app
web.1  | [2015-12-23 13:27:19 -0800] [8317] [INFO] Worker exiting (pid: 8317)
web.1  | [2015-12-23 13:27:19 -0800] [8313] [INFO] Shutting down: Master
web.1  | [2015-12-23 13:27:19 -0800] [8313] [INFO] Reason: Worker failed to boot.

这是我的Procfile:

web: gunicorn mysite.config.settings.wsgi:application --log-file -

我的wsgi文件位于mysite / config / settings / wsgi.py

这里有修复吗?

1 个答案:

答案 0 :(得分:1)

尝试:

web: gunicorn mysite.config.settings.wsgi