Discord bot部署在Heroku上但没有上线

时间:2018-12-27 00:52:33

标签: node.js heroku

我已经通过Heroku部署了用Node.js编写的Discord机器人。部署它工作正常,通过Git和CLI部署时没有错误,但查看控制台会出现:

2018-12-27T00:40:49.350186+00:00 app[worker.1]:     at require (internal/modules/cjs/helpers.js:22:18)
2018-12-27T00:40:49.350187+00:00 app[worker.1]:     at Object.<anonymous> (/app/bot.js:2:16)
2018-12-27T00:40:49.350189+00:00 app[worker.1]:     at Module._compile (internal/modules/cjs/loader.js:689:30)
2018-12-27T00:40:49.350191+00:00 app[worker.1]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
2018-12-27T00:40:49.350192+00:00 app[worker.1]:     at Module.load (internal/modules/cjs/loader.js:599:32)
2018-12-27T00:40:49.350194+00:00 app[worker.1]:     at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
2018-12-27T00:40:49.350195+00:00 app[worker.1]:     at Function.Module._load (internal/modules/cjs/loader.js:530:3)
2018-12-27T00:44:22.103872+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=discordinsultbot.herokuapp.com request_id=d07b0456-29a2-4ecc-8574-f38108702f95 fwd="92.233.169.246" dyno= connect= service= status=503 bytes= protocol=https
2018-12-27T00:44:24.247588+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=discordinsultbot.herokuapp.com request_id=eb51c01e-3959-4320-baae-bed3f257a878 fwd="92.233.169.246" dyno= connect= service= status=503 bytes= protocol=https
2018-12-27T00:44:31.125016+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=discordinsultbot.herokuapp.com request_id=055c8a2f-ece4-4290-85fa-8e451c0bf3d0 fwd="92.233.169.246" dyno= connect= service= status=503 bytes= protocol=https

找不到太多有关其发生原因的信息。当前在最新的Git分支上,已启用Node.js buildpack,并且在 Pocfile

0 个答案:

没有答案