initial production commit
This commit is contained in:
parent
6f43d17ddd
commit
773b4773eb
9 changed files with 116 additions and 93 deletions
|
@ -1,40 +1,41 @@
|
|||
require('dotenv').config();
|
||||
require("dotenv").config();
|
||||
|
||||
module.exports = {
|
||||
|
||||
development: {
|
||||
client: 'postgresql',
|
||||
client: "postgresql",
|
||||
connection: {
|
||||
host: 'db',
|
||||
port: 5432,
|
||||
host: "db",
|
||||
port: process.env.DB_PORT,
|
||||
database: process.env.DB_NAME,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD
|
||||
password: process.env.DB_PASSWORD,
|
||||
},
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 10
|
||||
max: 10,
|
||||
},
|
||||
migrations: {
|
||||
tableName: 'knex_migrations',
|
||||
directory: './migrations'
|
||||
}
|
||||
tableName: "knex_migrations",
|
||||
directory: "./migrations",
|
||||
},
|
||||
},
|
||||
|
||||
production: {
|
||||
client: 'postgresql',
|
||||
client: "postgresql",
|
||||
connection: {
|
||||
database: 'my_db',
|
||||
user: 'username',
|
||||
password: 'password'
|
||||
host: "db",
|
||||
port: process.env.DB_PORT,
|
||||
database: process.env.DB_NAME,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
},
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 10
|
||||
max: 10,
|
||||
},
|
||||
migrations: {
|
||||
tableName: 'knex_migrations'
|
||||
}
|
||||
}
|
||||
|
||||
tableName: "knex_migrations",
|
||||
directory: "./migrations",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue