我遵循的是https://deepstream.io/tutorials/plugins/database/postgres/,我创建了一个拥有用户james的所有者和权限的testDB
在conf/config.yml中,我有以下配置
plugins:
storage:
name: postgres
options:
user: james
database: testDB
password: james
host: localhost
port: 5432 #postgres default post
schema: ds #schema defaults to ds. Will be created if it doesn't exist
max: 10 #concurrent connections
idleTimeoutMillis: 30000 #timeout after which connection will be cut
writeInterval: 200 #amout of milliseconds during which writes will be buffered
notifications:
CREATE_TABLE: true #Get notified when tables are created
DESTROY_TABLE: true #Get notified when tables are dropped
INSERT: true # Get notified when records are created
UPDATE: false # Get notified when records are updated然而,当我运行深流启动时,我得到了以下错误
从/Users/james/Workspace/deepstream.io/conf/permissions.yml (permissions.yml) fileLoad(permissions.yml) CONFIG_ERROR错误加载模块加载内容,退出
有人能告诉我我错过了什么吗。谢谢你的帮助。
打招呼,
约翰
发布于 2022-04-25 14:50:47
最后,我解决了这个问题,配置是正确的,只是为了确保postgres数据库和角色的正确完成。该角色需要有密码和登录。另外,我从github克隆代码,这样我就可以看到npm启动时的错误是什么。这将显示详细的错误消息。如果没有显示错误,npm测试,这将显示所有丢失的包,并尝试重新安装npm。
https://stackoverflow.com/questions/71992419
复制相似问题