简体   繁体   English

Heroku 不会从我的 Github 存储库中检测到我的 Procfile?

[英]Heroku won't detect my Procfile from my Github repository?

I'm trying to host a Discord bot on Heroku, and I've written all of my bot, but it won't detect my Procfile.我正在尝试在 Heroku 上托管 Discord 机器人,并且我已经编写了所有机器人,但它不会检测到我的 Procfile。 I put it in the root directory of the repository, it's just Procfile with a capital P without a file extension, and I have no idea why it won't work.我把它放在存储库的根目录中,它只是带有大写 P 没有文件扩展名的 Procfile,我不知道为什么它不起作用。 I've remembered to commit it and deploy my heroku project.我记得提交它并部署我的 heroku 项目。

My Procfile:我的档案:

我的档案

The build log:构建日志:

构建日志

Did you go to the build packs on Heroku and add node.js?您是否将 go 添加到 Heroku 上的构建包并添加 node.js? If not that could be the problem.如果不是那可能是问题所在。 Also make sure to change the starter on Heroku.还要确保更改 Heroku 上的启动器。

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

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