mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 11:03:23 +03:00
32 lines
743 B
JavaScript
32 lines
743 B
JavaScript
import * as Environment from "~/node_common/environment";
|
|
|
|
const developmentConfig = {
|
|
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,
|
|
},
|
|
};
|
|
|
|
const productionConfig = {
|
|
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,
|
|
},
|
|
};
|
|
|
|
module.exports = {
|
|
development: developmentConfig,
|
|
staging: productionConfig,
|
|
production: productionConfig,
|
|
};
|