我只是试着把Ghost安装到谷歌云应用引擎上。 我按照官方的指示进行操作,但在下面出现了错误:
2020-07-25 10:40:52默认值[20200725T173735]错误:EROFS:只读文件系统,打开“/workspace/node_modules/ghost/content/logs/https___yaskurweb_appspot_com_production.error.log”
然后将config.production.json
更改为:
"logging": {
"level": "info",
"rotation": {
"enabled": true
},
"transports": ["file", "stdout"]
}
至
"logging": {
"transports": [
"stdout"
]
},
但我在下面发现了另一个错误:
2020-07-25 10:58:47默认[20200725T175429]错误:EROFS:只读文件系统,复制文件'/workspace/node_modules/ghost/core/frontend/services/settings/default-routes.yaml'->; '/workspace/node_modules/ghost/content/settings/routes.yaml'
我认为这是Ghost试图将routes.yaml文件复制到另一个目录时引起的。 所以我需要知道如何禁用在Ghost中写入任何文件?
我的完整config.production.json
是:
{
"url": "https://myproject.appspot.com",
"fileStorage": false,
"server": {
"port": 8080,
"host": "0.0.0.0"
},
"database": {
"client": "mysql",
"connection": {
"host": "*",
"port": "3306",
"user": "dev",
"password": "*",
"database": "test_db"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "content/"
}
}
问题是config将内容路径设置为node_modules。 它应该安装为根路径。
所以我从:
"paths": {
"contentPath": "content/"
}
至
"paths": {
"contentPath": "/workspace/content/"
}
然后完美地工作。。。