heroku - Heroku 没有运行我的机器人 discord.js 并导致错误
问题描述
每次 heroku 运行我的机器人时,我都会收到此错误:
2020-08-31T14:55:51.202566+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2020-08-31T14:55:51.221755+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-08-31T14:55:51.282351+00:00 heroku[web.1]: Process exited with status 137
2020-08-31T14:55:51.317667+00:00 heroku[web.1]: State changed from starting to crashed
这是我的 ProcFile:
worker: node index.js
我的 Package.json:
{
"name": "yuuto-giveaway",
"version": "1.0.0",
"description": "A Giveaway Bot",
"main": "index.js",
"dependencies": {
"discord.js": "^12.3.1",
"fs": "^0.0.1-security",
"ms": "^2.1.2",
"path": "^0.12.7"
},
"devDependencies": {},
"scripts": {
"start": "node index.js"
},
"keywords": [
"Fun"
],
"author": "BlueFire",
"license": "ISC"
}
我不知道如何解决它!
解决方案
推荐阅读
- php - 警告:php 中的参数无效
- ms-word - Word Online 有时仅加载
- linux - 使用 spawn -open 时,Bash Expect 不响应击键
- bixby - Bixby - 如何将整个 $user 对象传递给方法
- python-3.x - 在 Pandas 中,如何使用 Multi-Index 过滤其他数据帧
- java - Java 捕获并显示 SqlExceptionHelper
- python - 如何使用python读取excel文件中的特定行
- linux - 如何为 SSD 闪存驱动器安装 UBIFS 文件系统?
- javascript - Wordpress 子主题 css 不会覆盖父 css
- gitlab - 如何使用omnibus安装以前的gitlab ce版本?