错误:尝试迁移到 heroku 时出现自签名证书

时间:2021-01-08 05:37:02

标签: heroku migration

在我收到 no pg_hba.conf 错误之前,我更改了我的 postgrator 配置以尝试解决该问题。

目前看起来像:

require('dotenv').config();

  const postString = process.env.DATABASE_URL + "?sslmode=require";

  module.exports = {
    "migrationsDirectory": "migrations",
    "driver": "pg",
    "connectionString": postString,
    ssl: {
      rejectUnauthorized: false
    }
  }

它给了我以下错误:

Error: self signed certificate

现在我不知道该怎么做。

0 个答案:

没有答案