没有Web进程在heroku中运行Django [英] No web processes running Django in heroku

查看:196
本文介绍了没有Web进程在heroku中运行Django的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在heroku中部署我的应用程序,但是当我终于试图运行我的应用程序在英雄我在浏览器中这样:

 code>应用程序错误
应用程序发生错误,无法提供您的页面。请稍后重试。

如果您是应用程序所有者,请查看日志以了解详细信息。

当我看到我的日志,我得到下一个:

  2013-08-31T19:53:30.672416 + 00:00 heroku [api]:启用Logplex by user@example.com 
2013-08-31T19:53 :30.700218 + 00:00 heroku [api]:由user@example.com创建的版本v2
2013-08-31T19:58:41 + 00:00 heroku [slug-compiler]:Slug编译开始
2013-08-31T20:04:12.967456 + 00:00 heroku [路由器]:at = info code = desc =空白应用程序方法= GET路径= / host = cristowip.herokuapp.com fwd =189.137.81.39 dyno = connect = service = status = 502 bytes =
2013-08-31T20:04:13.161016 + 00:00 heroku [路由器]:at = info code = desc =空白应用程序方法= GET路径= favicon.ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 502 bytes =
2013-08-31T20:13:46 + 00:00 heroku [slug-compiler ]:Slug编译超时:904.285527871秒。
2013-08-31T20:22:52.646361 + 00:00 heroku [路由器]:at = info code = desc =空白应用程序方法= GET路径= / host = cristowip.herokuapp.com fwd =189.137 .81.39dyno = connect = service = status = 502 bytes =
2013-08-31T20:22:55.043424 + 00:00 heroku [路由器]:at = info code = desc =空白应用程序方法= GET path = / favicon.ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 502 bytes =
2013-08-31T20:26:14 + 00:00 heroku [ slug-compiler]:Slug compilation started
2013-08-31T20:38:41 + 00:00 heroku [slug-compiler]:Slug compilation started
2013-08-31T20:41:22 + 00 :00 heroku [slug-compiler]:Slug编译超时:908.241350492秒。
2013-08-31T20:49:24.238496 + 00:00 heroku [路由器]:at = info code = desc =空白应用程序方法= GET路径= / host = cristowip.herokuapp.com fwd =189.137 .81.39dyno = connect = service = status = 502 bytes =
2013-08-31T20:49:24.644910 + 00:00 heroku [路由器]:at = info code = desc =空白应用程序方法= GET path = / favicon.ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 502 bytes =
2013-08-31T20:53:47 + 00:00 heroku [ slug-compiler]:Sluts编译超时:907.148099965秒。
2013-08-31T20:56:59 + 00:00 heroku [slug-compiler]:Slug compilation started
2013-08-31T20:58:50.641624 + 00:00 heroku [api]:Attach HEROKU_POSTGRESQL_AQUA资源由user@example.com
2013-08-31T20:58:50.658435 + 00:00 heroku [api]:由user@example.com创建的版本v3
2013-08-31T20:58 :50.742803 + 00:00 heroku [api]:通过user@example.com添加DATABASE_URL配置
2013-08-31T20:58:50.782484 + 00:00 heroku [api]:由用户@ example创建的v4。 com
2013-08-31T20:58:50.840509 + 00:00 heroku [api]:部署78dba6c by user@example.com
2013-08-31T20:58:50.852187 + 00:00 heroku [ api]:发布v5由user@example.com创建
2013-08-31T20:58:54 + 00:00 heroku [slug-compiler]:Slug编译完成
2013-08-31T21:00 :25.085053 + 00:00 heroku [路由器]:at =错误代码= H14 desc =没有Web进程运行method = GET path = / favicon.ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 503 bytes =
2013-08-31T21:00:24.751074 + 00:00 heroku [router]:at = error code = H14 desc =没有Web进程运行method = GET path = / host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 503 bytes =
2013- 08-31T21:01:03.272614 + 00:00 heroku [路由器]:at =错误代码= H14 desc =没有Web进程运行method = GET path = / host = cristowip.herokuapp.com fwd =189.137.81.39 dyno = connect = service = status = 503 bytes =
2013-08-31T21:01:03.815558 + 00:00 heroku [路由器]:at =错误代码= H14 desc =没有Web进程运行method = GET path = / favicon.ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 503 bytes =
2013-08-31T21:02:10.279054 + 00:00 heroku [路由器]:at = error code = H14 desc =没有Web进程运行method = GET path = / host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 503 bytes =
2013-08-31T21:03:25.381362 + 00:00 heroku [路由器]:at =错误代码= H14 desc =没有Web进程运行method = GET path = / host = cristowip.herokuapp.com fwd = 189.137.81.39dyno = connect = service = status = 503 bytes =
2013-08-31T21:03:25.709121 + 00:00 heroku [路由器]:at =错误代码= H14 desc =没有Web进程运行method = GET path = / favicon。 ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 503 bytes =
2013-08-31T21:03:45.285962 + 00:00 heroku [router]:at =错误代码= H14 desc =没有Web进程运行method = GET path = / favicon.ico host = cristowip.herokuapp.com fwd =189.137.81.39dyno = connect = service = status = 503 bytes =
christian @ christian-R480-R431-R481:〜/ Documentos / heroku / portafolio / venv $


解决方案

Benjamin Manns的解决方案为我工作,虽然我还需要一个额外的步骤。



根据这个,在 Procfile 解决方案之后推,运行以下:



heroku ps:scale web = 1 p>

网站sh现在可以正确加载。



有更多的帮助推送到一个heroku git repo,请参阅


(这是一个很好的例子)

I was trying to deploy my application in heroku, but when i finally try to run my application in heroku I het in the browser this:

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

When i see my logs I get the next:

2013-08-31T19:53:30.672416+00:00 heroku[api]: Enable Logplex by user@example.com
2013-08-31T19:53:30.700218+00:00 heroku[api]: Release v2 created by user@example.com
2013-08-31T19:58:41+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-31T20:04:12.967456+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=502 bytes=
2013-08-31T20:04:13.161016+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=502 bytes=
2013-08-31T20:13:46+00:00 heroku[slug-compiler]: Slug compilation timed out: 904.285527871 seconds.
2013-08-31T20:22:52.646361+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=502 bytes=
2013-08-31T20:22:55.043424+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=502 bytes=
2013-08-31T20:26:14+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-31T20:38:41+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-31T20:41:22+00:00 heroku[slug-compiler]: Slug compilation timed out: 908.241350492 seconds.
2013-08-31T20:49:24.238496+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=502 bytes=
2013-08-31T20:49:24.644910+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=502 bytes=
2013-08-31T20:53:47+00:00 heroku[slug-compiler]: Slug compilation timed out: 907.148099965 seconds.
2013-08-31T20:56:59+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-31T20:58:50.641624+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_AQUA resource by user@example.com
2013-08-31T20:58:50.658435+00:00 heroku[api]: Release v3 created by user@example.com
2013-08-31T20:58:50.742803+00:00 heroku[api]: Add DATABASE_URL config by user@example.com
2013-08-31T20:58:50.782484+00:00 heroku[api]: Release v4 created by user@example.com
2013-08-31T20:58:50.840509+00:00 heroku[api]: Deploy 78dba6c by user@example.com
2013-08-31T20:58:50.852187+00:00 heroku[api]: Release v5 created by user@example.com
2013-08-31T20:58:54+00:00 heroku[slug-compiler]: Slug compilation finished
2013-08-31T21:00:25.085053+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:00:24.751074+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:01:03.272614+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:01:03.815558+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:02:10.279054+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:03:25.381362+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/ host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:03:25.709121+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
2013-08-31T21:03:45.285962+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/favicon.ico host=cristowip.herokuapp.com fwd="189.137.81.39" dyno= connect= service= status=503 bytes=
christian@christian-R480-R431-R481:~/Documentos/heroku/portafolio/venv$ 

解决方案

Benjamin Manns' solution worked for me, though I needed one additional step as well.

According to this, after the Procfile solution has been pushed, run the following:

heroku ps:scale web=1

website should load correctly now.

for more help pushing to a heroku git repo, see this

这篇关于没有Web进程在heroku中运行Django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆