简体   繁体   English

我的 heroku 应用程序没有运行测功机 - 没有 web 进程正在运行意味着打开托管网站时出现应用程序错误

[英]My heroku app has no dynos running - No web processes running means Application error when opening hosted website

I deployed my app on Heroku it doesn't work so when i checked out the app in Heroku website i've noticed that it has no dynos and it's supposed to be having one dyno by default if no Procfile detected.我在Heroku上部署了我的应用程序,它不起作用,所以当我在Heroku网站上查看应用程序时,我注意到它没有测功机,如果没有检测到 Procfile,它应该默认有一个测功机。

That's what i've been doing the most of the time previously and it was working fine这就是我之前大部分时间都在做的事情,而且效果很好

Heroku logs says: Heroku 日志说:

No web processes running没有 web 进程正在运行

it has no Procfile only some images css and HTML.它没有 Procfile,只有一些图像 css 和 HTML。

Finally, i was stuck in that for like 3 hours or more thank god it's fixed... fixed just by deleting the whole heroku app and then specifying the buildpack that you gonna use in your interactive terminal with this command line heroku buildpacks:set heroku/php and you can add it on creating the app directly and that's what i did and it was fixed like that:最后,我被困了大约 3 个小时或更长时间,感谢上帝,它已修复......只需删除整个 heroku 应用程序,然后使用此命令行指定您将在交互式终端中使用的heroku buildpacks:set heroku/php ,您可以直接在创建应用程序时添加它,这就是我所做的,它是这样修复的:

heroku create myapp --buildpack heroku/php

and the main reason was because of one python library was installed and i wasn't even using it so heroku finds two builpacks python and php and used the python one so when i did specifying that i'm actually using PHP everything works fine and the main reason was because of one python library was installed and i wasn't even using it so heroku finds two builpacks python and php and used the python one so when i did specifying that i'm actually using PHP everything works fine

i'd like to document it in public so others (including me) can find it later.我想公开记录它,以便其他人(包括我)以后可以找到它。 Now, others can benefit from my misfortune LOL现在,其他人可以从我的不幸中受益 LOL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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