forked from gvickstrom/Fishing_App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknexfile.js
34 lines (33 loc) · 820 Bytes
/
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
const databaseName = 'fishing';
module.exports = {
development: {
client: 'postgresql',
connection: `postgres://localhost:5432/${databaseName}`,
migrations: {
directory: __dirname + '/src/server/db/migrations'
},
seeds: {
directory: __dirname + '/src/server/db/seeds'
}
},
test: {
client: 'postgresql',
connection: `postgres://localhost:5432/${databaseName}_test`,
migrations: {
directory: __dirname + '/src/server/db/migrations'
},
seeds: {
directory: __dirname + '/src/server/db/seeds'
}
},
production: {
client: 'postgresql',
connection: process.env.DATABASE_URL,
migrations: {
directory: __dirname + '/src/server/db/migrations'
},
seeds: {
directory: __dirname + '/src/server/db/seeds'
}
}
};