Discourse 数据库套接字信息

当我尝试在 AWS EC2 上部署 Discourse 时,我遇到了一个问题,无法找到应位于 app.yml 中的 DISCOURSE_DB_SOCKET 信息。有人能告诉我从哪里可以获取 DISCOURSE_DB_SOCKET 的信息吗?

DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_NAME:  [AWS_POSTGRES_DB_NAME]
DISCOURSE_DB_POOL:  15
DISCOURSE_DB_USERNAME: [AWS_POSTGRES_DB_USERNAME]
DISCOURSE_DB_PASSWORD:  [AWS_POSTGRES_DB_PASSWORD]
DISCOURSE_DB_HOST:  [AWS_POSTGRES_ENDPOINT]
DISCOURSE_REDIS_HOST:  [AWS_REDIS_ENDPOINT]

That would be the path to the unix socket of the PostgreSQL you want to connect to. You should omit it on most cases.

1 个赞

But i still can not find it. Is it the PostgreSQL that i have created on my AWS account. if so, which one is its path

If you don’t know then you can just access it via the port.