-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknexfile.js
46 lines (44 loc) · 1.24 KB
/
knexfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Update with your config settings.
// Keep it as JS because it's useless to make it a TS file and it has to be at the root of the project
const Knex = require("knex");
const config = require("./config.json");
module.exports = {
development: {
client: "pg",
connection: {
database: "my_man_test",
host: config.host,
password: config.testdatabasepassword,
port: 5432,
user: config.testdatabaseuser,
},
migrations: {
directory: __dirname + "/migrations",
tableName: "knex_migrations",
},
seeds: {
directory: __dirname + "/seeds/development",
},
},
production: {
client: "pg",
connection: {
database: "my_man_production",
host: config.host,
password: config.productiondatabasepassword,
port: 5432,
user: config.productiondatabaseuser,
},
migrations: {
directory: __dirname + "/migrations",
tableName: "knex_migrations",
},
pool: {
max: 10,
min: 2,
},
seeds: {
directory: __dirname + "/seeds/production",
},
},
};