简体   繁体   中英

Heroku Error H14 (No web processes running)

Pretty sure some people encountered this problem before.

Followed all the instructions to setup node and npm. When pushing to heroku there were no errors. But when I open the app, it shows "Application Error"

heroku ps

returns

Process  State      Command       
-------  ---------  ------------  
main.1   up for 1m  node main.js

while

heroku logs

returns

Error H14 (No web processes running) -> GET mewtwo.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=

I tried restarting the app with heroku restart but still get the same error. Google around and there were no other solution other than heroku restart . Anyone tried other methods?

我有同样的问题,但对我来说这是因为我需要运行heroku ps:scale web=1

The name of your web process must be web , and this is the process that Heroku will always scale to '1' on initial deploy.

Other services in the Procfile can be called what you want, but you need to scale them initially (so you can have dev only processes in there if you want).

More information here: http://neilmiddleton.com/the-procfile-is-your-friend/ (the cached version: https://web.archive.org/web/20130926005616/http://www.neilmiddleton.com/the-procfile-is-your-friend )

我想我的问题是这样的,我的节点应用程序中有一个 python 脚本,这导致 heroku 相信它是一个 python 应用程序,我也没有添加 procfile,因为我希望构建机器人自动检测它是一个节点应用程序,所以在设置 procfile 之后,然后在 package.json 中的引擎键中指定 node 和 npm 版本,并将 buildpack 类型更改为 heroku/node,我的应用程序正在运行。

Full disclosure, I solved this problem by turning it on.

Heroku Application Overview tab > click Configure Dyno > click the pencil icon > click toggle switch to On position > click confirm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM