Scaling dynos... ! ! Couldn't find that process type (web).
Posted liyanyinng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Scaling dynos... ! ! Couldn't find that process type (web).相关的知识,希望对你有一定的参考价值。
在我 Git push heroku master 完之后,打开网页链接得到了application error:An error occurred in the application and your page could not be served.
然后在命令行里执行 heroku logs --tail得到以下东西:
1 D:\pycharm\pycharm projects\wblog\wblog>heroku logs --tail 2 2019-07-28T09:03:18.289896+00:00 app[api]: Initial release by user a2602161497@outlook.com 3 2019-07-28T09:03:18.289896+00:00 app[api]: Release v1 created by user a2602161497@outlook.com 4 2019-07-28T09:03:18.433102+00:00 app[api]: Release v2 created by user a2602161497@outlook.com 5 2019-07-28T09:03:18.433102+00:00 app[api]: Enable Logplex by user a2602161497@outlook.com 6 2019-07-28T09:03:38.000000+00:00 app[api]: Build started by user a2602161497@outlook.com 7 2019-07-28T09:03:39.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/768b15d9-2a0c-4f1c-9cea-2b5a201223f3/activity/builds/5afcc4c6-1bc8-4ad4-a769-1960ea3aa329 8 2019-07-28T09:08:02.000000+00:00 app[api]: Build started by user a2602161497@outlook.com 9 ——snip—— 10 2019-07-28T10:00:53.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/768b15d9-2a0c-4f1c-9cea-2b5a201223f3/activity/builds/b98e836d-15b7-48f4-b7a0-8f22907e3b0f 11 2019-07-28T10:02:51.000000+00:00 app[api]: Build started by user a2602161497@outlook.com 12 2019-07-28T10:03:16.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/768b15d9-2a0c-4f1c-9cea-2b5a201223f3/activity/builds/06b97966-ca61-456b-a767-4a1107265497 13 2019-07-28T10:06:07.000000+00:00 app[api]: Build started by user a2602161497@outlook.com 14 2019-07-28T10:06:30.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/768b15d9-2a0c-4f1c-9cea-2b5a201223f3/activity/builds/c98f0da4-b69f-4b78-8f8d-44621aae1ab4 15 2019-07-28T10:15:13.539752+00:00 app[api]: Set DISABLE_COLLECTSTATIC config vars by user a2602161497@outlook.com 16 2019-07-28T10:15:13.539752+00:00 app[api]: Release v3 created by user a2602161497@outlook.com 17 2019-07-28T10:15:47.000000+00:00 app[api]: Build started by user a2602161497@outlook.com 18 2019-07-28T10:16:20.301050+00:00 app[api]: Running release v4 commands by user a2602161497@outlook.com 19 2019-07-28T10:16:20.314433+00:00 app[api]: @ref:postgresql-concave-41850 completed provisioning, setting DATABASE_URL. by user a2602161497@outlook.com 20 2019-07-28T10:16:20.301050+00:00 app[api]: Attach DATABASE (@ref:postgresql-concave-41850) by user a2602161497@outlook.com 21 2019-07-28T10:16:20.314433+00:00 app[api]: Release v5 created by user a2602161497@outlook.com 22 2019-07-28T10:16:20.563980+00:00 app[api]: Deploy 591886c8 by user a2602161497@outlook.com 23 2019-07-28T10:16:20.563980+00:00 app[api]: Release v6 created by user a2602161497@outlook.com 24 2019-07-28T10:16:29.000000+00:00 app[api]: Build succeeded 25 2019-07-28T10:19:02.245856+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=shielded-brook-99547.herokuapp.com request_id=936ef859-e979-4adf-86ee-7316b4fa143c fwd="178.62.236.74" dyno= connect= service= status=503 bytes= protocol=https 26 2019-07-29T04:01:01.475469+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=shielded-brook-99547.herokuapp.com request_id=c598ee9a-79b3-4331-835b-250315c2d83d fwd="112.96.112.171" dyno= connect= service= status=503 bytes= protocol=https 27 2019-07-29T04:01:03.394240+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=shielded-brook-99547.herokuapp.com request_id=fe3e8b10-7d79-41a2-8cd3-92157db79dae fwd="112.96.112.171" dyno= connect= service= status=503 bytes= protocol=https 28 2019-07-29T04:52:39.000000+00:00 app[api]: Build started by user a2602161497@outlook.com 29 2019-07-29T04:52:57.882020+00:00 app[api]: Deploy 6930749c by user a2602161497@outlook.com 30 2019-07-29T04:52:57.882020+00:00 app[api]: Release v7 created by user a2602161497@outlook.com 31 2019-07-29T04:53:07.000000+00:00 app[api]: Build succeeded 32 2019-07-29T04:56:55.101401+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=shielded-brook-99547.herokuapp.com request_id=22fdb666-6f34-4894-975c-be98cd62b1e9 fwd="104.237.153.137" dyno= connect= service= status=503 bytes= protocol=https
然后查看网上的资料再运行:heroku ps:scale web=1
出现了Scaling dynos... ! ! Couldn‘t find that process type (web).
原因是:Procfile出现问题
解决方案:Procfile的问题
1、或许是Procfile写错了,这个一定要确保是大写P ,切勿注意!
2、Procfile里面的内容
1 web: gunicorn wblog.wsgi --log-file -
自己搞了很久,没想到是这个小问题,下次还是要小心才行。
以上是关于Scaling dynos... ! ! Couldn't find that process type (web).的主要内容,如果未能解决你的问题,请参考以下文章