简体   繁体   English

为什么我的 heroku 工人 dyno 不工作?

[英]Why is my heroku worker dyno not working?

I have a worker dyno that I use to run my discord bot.我有一个工人 dyno,用于运行我的 Discord 机器人。 It works normally every day and I have been using it for a long time but suddenly today is just stopped working even though it shows that it turned the dyno on but my bot is still offline and I also have enough hours so it is not a hours problem too(My code is also perfect which I have connected through GitHub pipeline).它每天都正常工作,我已经使用它很长时间了,但今天突然停止工作,即使它显示它打开了测功机,但我的机器人仍然处于离线状态,我也有足够的时间,所以不是一个小时问题也是(我的代码也很完美,我通过 GitHub 管道连接)。 I cannot figure out what's wrong with the dyno.我无法弄清楚dyno有什么问题。 Does anybody know why it might be happening?有谁知道为什么会发生这种情况?

Solved.解决了。 I was missing the ms module.我错过了 ms 模块。 So I installed the ms module using npm i ms -s and then updated my package.json file to Github and when the build was done, it worked.所以我使用npm i ms -s安装了 ms 模块,然后将我的 package.json 文件更新到 Github,当构建完成后,它工作了。

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

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