【发布时间】:2020-07-29 08:10:53
【问题描述】:
Heroku 日志
我正在尝试在 heroku 上部署一个 django 应用程序,这是我在 heroku 上部署的第一个应用程序,构建成功但是当我运行 URL 时,它说应用程序错误并且日志显示以下内容。
2020-07-29T07:58:24.000000+00:00 app[api]: Build started by user ketanpatil3106@
gmail.com
2020-07-29T07:58:59.203607+00:00 app[api]: Deploy 26b25759 by user ketanpatil310
6@gmail.com
2020-07-29T07:58:59.203607+00:00 app[api]: Release v6 created by user ketanpatil
3106@gmail.com
2020-07-29T07:59:07.261443+00:00 heroku[router]: at=error code=H14 desc="No web
processes running" method=GET path="/" host=newtonnation.herokuapp.com request_i
d=debda95e-c51d-4090-87a9-73102c5c9411 fwd="106.193.222.48" dyno= connect= servi
ce= status=503 bytes= protocol=https
2020-07-29T07:59:09.000000+00:00 app[api]: Build succeeded
2020-07-29T07:59:10.136919+00:00 heroku[router]: at=error code=H14 desc="No web
processes running" method=GET path="/favicon.ico" host=newtonnation.herokuapp.co
m request_id=50db9f9b-2e03-4465-b3ba-f851612f3db8 fwd="106.193.222.48" dyno= con
nect= service= status=503 bytes= protocol=https
2020-07-29T07:59:12.539684+00:00 heroku[router]: at=error code=H14 desc="No web
processes running" method=GET path="/" host=newtonnation.herokuapp.com request_i
d=22f644fb-4d6f-48ed-a34f-f35d5dd41033 fwd="106.193.222.48" dyno= connect= servi
ce= status=503 bytes= protocol=https
2020-07-29T07:59:13.903721+00:00 heroku[router]: at=error code=H14 desc="No web
processes running" method=GET path="/favicon.ico" host=newtonnation.herokuapp.co
m request_id=3dfff95c-dd3c-4590-ad22-2c673a9ec5b9 fwd="106.193.222.48" dyno= con
nect= service= status=503 bytes= protocol=https
2020-07-29T08:04:38.784712+00:00 heroku[router]: at=error code=H14 desc="No web
processes running" method=GET path="/" host=newtonnation.herokuapp.com request_i
d=6e61e063-8575-4236-9d87-a1af42058b82 fwd="106.193.222.48" dyno= connect= servi
ce= status=503 bytes= protocol=https
2020-07-29T08:04:41.381297+00:00 heroku[router]: at=error code=H14 desc="No web
processes running" method=GET path="/favicon.ico" host=newtonnation.herokuapp.co
m request_id=ab3bd0e2-5396-4c63-9735-9d0a30f54013 fwd="106.193.222.48" dyno= con
nect= service= status=503 bytes= protocol=https
过程文件:
web: gunicorn PHYSICS_COMMUNITY.wsgi
我试过运行heroku ps:scale web=1,但它返回了Couldn't find that process type (web).
请帮帮我
【问题讨论】:
-
定义进程的语法是
<process type>: <command>你在Procfile中缺少: -
已经试过了,没有任何改变