mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-21 16:52:36 +03:00
chore(env): update knex config to match NODE_ENV values
This commit is contained in:
parent
4f1b0d951c
commit
7aa1039482
49
knexfile.js
49
knexfile.js
@ -1,26 +1,31 @@
|
||||
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,
|
||||
},
|
||||
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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user