mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
update
This commit is contained in:
+65
-65
@@ -1,4 +1,4 @@
|
||||
require("dotenv").config();
|
||||
require('dotenv').config();
|
||||
|
||||
let host;
|
||||
let database;
|
||||
@@ -6,77 +6,77 @@ let port;
|
||||
let user;
|
||||
let password;
|
||||
|
||||
if (process.env.SERVER_FOR == "local") {
|
||||
host = "localhost";
|
||||
database = "postgres";
|
||||
if (process.env.SERVER_FOR == 'local') {
|
||||
host = 'localhost';
|
||||
database = 'postgres';
|
||||
port = 5432;
|
||||
user = "postgres";
|
||||
password = "postgres";
|
||||
} else if (process.env.SERVER_FOR == "development") {
|
||||
host = "10.20.14.14";
|
||||
database = "postgres";
|
||||
user = 'postgres';
|
||||
password = 'postgres';
|
||||
} else if (process.env.SERVER_FOR == 'development') {
|
||||
host = '10.20.14.14';
|
||||
database = 'postgres';
|
||||
port = 5432;
|
||||
user = "cms";
|
||||
password = "Cm5kc1#2021";
|
||||
} else if (process.env.SERVER_FOR == "production") {
|
||||
host = "10.1.201.75";
|
||||
database = "postgres";
|
||||
user = 'postgres';
|
||||
password = 'inhc0mmute_cms';
|
||||
} else if (process.env.SERVER_FOR == 'production') {
|
||||
host = '10.1.201.75';
|
||||
database = 'postgres';
|
||||
port = 5432;
|
||||
user = "postgres";
|
||||
password = "inhc0mmute_cms";
|
||||
user = 'postgres';
|
||||
password = 'inhc0mmute_cms';
|
||||
}
|
||||
|
||||
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: host,
|
||||
database: database,
|
||||
user: user,
|
||||
password: password,
|
||||
},
|
||||
// connection: process.env.DB_URL,
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 10,
|
||||
},
|
||||
migrations: {
|
||||
directory: "./infrastructure/database/migrations",
|
||||
},
|
||||
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: host,
|
||||
database: database,
|
||||
user: user,
|
||||
password: password,
|
||||
},
|
||||
// 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" },
|
||||
testing: {
|
||||
client: 'pg',
|
||||
connection: process.env.DB_URL,
|
||||
migrations: {
|
||||
directory: './infrastructure/database/migrations',
|
||||
},
|
||||
seeds: { directory: './infrastructure/database/seeds' },
|
||||
},
|
||||
|
||||
production: {
|
||||
client: "pg",
|
||||
connection: {
|
||||
host: host,
|
||||
database: database,
|
||||
user: user,
|
||||
password: password,
|
||||
},
|
||||
// connection: process.env.DB_URL,
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 10,
|
||||
},
|
||||
migrations: {
|
||||
directory: "./infrastructure/database/migrations",
|
||||
},
|
||||
production: {
|
||||
client: 'pg',
|
||||
connection: {
|
||||
host: host,
|
||||
database: database,
|
||||
user: user,
|
||||
password: password,
|
||||
},
|
||||
};
|
||||
// connection: process.env.DB_URL,
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 10,
|
||||
},
|
||||
migrations: {
|
||||
directory: './infrastructure/database/migrations',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user