-
Notifications
You must be signed in to change notification settings - Fork 8
/
knexfile.js
53 lines (49 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
47
48
49
50
51
52
53
//ENV Configuration
require("dotenv").config();
// Update with your config settings.
//ENVIRONMENT=development
module.exports = {
development: {
client: "postgresql",
connection: {
database: "HiveStack",
user: "postgres",
password: process.env.DB_Password
},
migrations: {
tableName: "knex_migrations",
directory: "./backend/migrations"
},
seeds: { directory: "./backend/seeds" }
},
testing: {
client: "postgresql",
connection: {
database: "postgres",
user: "postgres",
password: process.env.DB_Password
},
migrations: {
database: "Postgres",
user: "postgres",
password: process.env.DB_Password
},
useNullAsDefault: true,
migrations: {
directory: "./backend/migrations"
},
seeds: {
directory: "./backend/seeds"
}
},
production: {
client: "pg",
connection: process.env.DATABASE_URL, //postgres://ropszhiypaokds:cc788a1aba301f3bc8bdcf2d4fc56280f1158a2f8b02d566ba5a852793c96786@ec2-23-21-156-171.compute-1.amazonaws.com:5432/dccmt8le0mj9t5
// ssl: true,
migrations: {
directory: "./backend/migrations",
tableName: "knex_migrations"
},
seeds: { directory: "./backend/seeds" }
}
};