mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
require("dotenv").config();
|
|
|
|
module.exports = {
|
|
// development: {
|
|
// client: "pg",
|
|
// connection: process.env.DB_URL,
|
|
// migrations: {
|
|
// directory: "./infrastructure/database/migrations",
|
|
// },
|
|
// seeds: { directory: "./infrastructure/database/seeds" },
|
|
// },
|
|
development: {
|
|
client: "pg",
|
|
connection: {
|
|
host : '10.1.201.95',
|
|
database: "postgres",
|
|
user: "cms",
|
|
password: "Cm5kc1#2021",
|
|
},
|
|
// connection: process.env.DB_URL,
|
|
pool: {
|
|
min: 2,
|
|
max: 10,
|
|
},
|
|
migrations: {
|
|
directory: "./infrastructure/database/migrations",
|
|
},
|
|
},
|
|
|
|
testing: {
|
|
client: "pg",
|
|
connection: process.env.DB_URL,
|
|
migrations: {
|
|
directory: "./infrastructure/database/migrations",
|
|
},
|
|
seeds: { directory: "./infrastructure/database/seeds" },
|
|
},
|
|
|
|
production: {
|
|
client: "pg",
|
|
connection: {
|
|
host : '10.1.201.95',
|
|
database: "postgres",
|
|
user: "cms",
|
|
password: "Cm5kc1#2021",
|
|
},
|
|
// connection: process.env.DB_URL,
|
|
pool: {
|
|
min: 2,
|
|
max: 10,
|
|
},
|
|
migrations: {
|
|
directory: "./infrastructure/database/migrations",
|
|
},
|
|
},
|
|
};
|