Files
Online-Topup-V1/knexfile.js
T
2022-09-09 14:50:06 +07:00

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",
},
},
};