如何在 botpress 中连接到 postgres 数据库?

How to connect to postgres database in botpress?

我在将 botpress 本地主机服务器连接到 postgres 数据库时遇到问题。 我在 bp.exe 所在的目录中设置了一个 .env 文件。 我已经提到了很多网站,但无法连接到 postgres
下面是 .env 文件

DATABASE=postgres
DATABASE_URL=postgres://user:password@localhost:5432/botpress

我有同样的问题(我从源代码构建)。

当我将 .env 放在路径 packages/bp/dist 中时它起作用了。