mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 21:06:28 +00:00
38 lines
774 B
JavaScript
38 lines
774 B
JavaScript
require("dotenv").config();
|
|
|
|
module.exports = {
|
|
development: {
|
|
client: "pg",
|
|
connection: process.env.DB_URL,
|
|
migrations: {
|
|
directory: "./infrastructure/database/migrations",
|
|
},
|
|
seeds: { directory: "./infrastructure/database/seeds" },
|
|
},
|
|
|
|
testing: {
|
|
client: "pg",
|
|
connection: process.env.DB_URL,
|
|
migrations: {
|
|
directory: "./infrastructure/database/migrations",
|
|
},
|
|
seeds: { directory: "./infrastructure/database/seeds" },
|
|
},
|
|
|
|
production: {
|
|
client: "pg",
|
|
connection: {
|
|
database: "DB_TOPUP_ONLINE_APP",
|
|
user: "developer",
|
|
password: "hisnutech",
|
|
},
|
|
pool: {
|
|
min: 2,
|
|
max: 10,
|
|
},
|
|
migrations: {
|
|
directory: "./infrastructure/database/migrations",
|
|
},
|
|
},
|
|
};
|