Postgres permissions.yml for fileLoad(permissions.yml) CONFI



我遵循https://deepstream.io/tutorials/plugins/database/postgres/我已经创建了一个testDB的所有者和权限的用户james

在conf/config. conf文件中。我有以下配置

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

然而,当我运行deepstream start时,我得到了以下错误

CONFIG_TRANSFORM |从/Users/james/Workspace/deepstream.io/conf/permissions加载内容。用于文件加载(permissions.yml)CONFIG_ERROR |加载模块出错,退出

谁能告诉我我错过了什么?谢谢你的帮助。

问候,

约翰

最后,我解决了这个问题,配置正确,只是为了确保postgres数据库和角色都做得正确。角色需要有密码和LOGIN。另外,我从github克隆代码,所以我可以看到npm启动时的错误是什么。这将显示详细的错误消息。如果没有错误显示,npm测试,这将显示所有丢失的包,并尝试再次npm install

相关内容

  • 没有找到相关文章

最新更新