slate/knexfile.js
2020-07-22 17:13:09 -07:00

27 lines
664 B
JavaScript

import * as Environment from "~/node_common/environment";
module.exports = {
development: {
client: "pg",
connection: {
ssl: true,
port: 5432,
host: Environment.POSTGRES_HOSTNAME,
database: Environment.POSTGRES_DATABASE,
user: Environment.POSTGRES_ADMIN_USERNAME,
password: Environment.POSTGRES_ADMIN_PASSWORD,
},
},
production: {
client: "pg",
connection: {
ssl: true,
port: 5432,
host: Environment.POSTGRES_HOSTNAME,
database: Environment.POSTGRES_DATABASE,
user: Environment.POSTGRES_ADMIN_USERNAME,
password: Environment.POSTGRES_ADMIN_PASSWORD,
},
},
};