【发布时间】:2019-10-03 14:25:15
【问题描述】:
我一直在尝试调试我的幽灵博客,如您所见here。
我已经取得了一些进展,这个问题似乎与 ghost 的引导套接字上的错误有关。
我的 Digital Ocean 服务器中的config.production.json 是:
{
"url": "https://www.mifitnessfacil.com",
"server": {
"port": 2369,
"host": "127.0.0.1"
},
"database": {
"client": "mysql",
"connection": {
"host": "localhost",
"user": "root",
"password": "foobar",
"database": "foobar"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/www/ghost/content"
},
"bootstrap-socket": {
"port": 8000,
"host": "localhost"
}
}
运行ghost run 时,我得到:
[2019-10-03 14:24:00] INFO Ghost is running in production...
[2019-10-03 14:24:00] INFO Your site is now available on https://www.mifitnessfacil.com/
[2019-10-03 14:24:01] INFO Ctrl+C to shut down
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] WARN Tries: 0
[2019-10-03 14:24:01] WARN Retrying...
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] WARN Tries: 1
[2019-10-03 14:24:01] WARN Retrying...
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] WARN Tries: 2
[2019-10-03 14:24:01] WARN Retrying...
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] INFO Ghost boot 3.299s
更新
- 它在
Ubuntu 18.04.3 LTS上运行 - 节点版本 10.16.3
- Npm 版本 6.9.0
回答
【问题讨论】:
-
@CommonSenceCode 您使用的是什么版本的 Node?如果你使用的是旧版本的 Node,更新,然后 ghost update --force
-
@tim 感谢您尝试我从节点 8 更新到最新的稳定节点 10.16.3,但我仍然遇到相同的错误
Can't connect to the bootstrap socket (localhost 8000)
标签: node.js linux ghost-blog