-
Notifications
You must be signed in to change notification settings - Fork 1
/
knexfile.js
39 lines (39 loc) · 1.04 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
require('dotenv').config({path: './.env'});
module.exports = {
development: {
migrations: {
directory: './src/migrations',
tableName: 'migrations'
},
seeds: {
directory: './src/seeds'
},
client: 'mysql',
connection: {
host: 'mysql_database',
user: 'thailand_province',
password: 'th_province',
database: 'thailand_province',
charset: 'utf8',
port: '3306'
}
},
production: {
migrations: {
directory: './src/migrations',
tableName: 'migrations'
},
seeds: {
directory: './src/seeds'
},
client: 'mysql',
connection: {
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASS,
database: process.env.MYSQL_DB_NAME,
charset: 'utf8',
port: process.env.MYSQL_PORT
}
}
};