This repository was archived by the owner on Jan 20, 2020. It is now read-only.
File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ ENABLE_SQREEN=false
8
8
SQREEN_TOKEN = token
9
9
10
10
# Database
11
+ KNEX_DEBUG = false
11
12
DB_CLIENT = postgres
12
13
DB_HOST = localhost
13
14
DB_USER = root
Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ require('dotenv').config();
2
2
3
3
// eslint-disable-next-line
4
4
const {
5
+ KNEX_DEBUG ,
5
6
DB_CLIENT_TEST ,
6
7
DB_HOST_TEST ,
7
8
DB_USER_TEST ,
8
9
DB_NAME_TEST ,
9
10
DB_PASS_TEST ,
10
11
} = process . env ;
11
12
13
+ const debug = KNEX_DEBUG === 'true' ;
14
+
12
15
module . exports = {
13
16
client : DB_CLIENT_TEST ,
14
17
connection : {
@@ -24,4 +27,6 @@ module.exports = {
24
27
migrations : {
25
28
tableName : 'knex_migrations' ,
26
29
} ,
30
+ debug,
31
+ asyncStackTraces : debug ,
27
32
} ;
Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ require('dotenv').config();
2
2
3
3
// eslint-disable-next-line
4
4
const {
5
+ KNEX_DEBUG ,
5
6
DB_CLIENT ,
6
7
DB_HOST ,
7
8
DB_USER ,
8
9
DB_NAME ,
9
10
DB_PASS ,
10
11
} = process . env ;
11
12
13
+ const debug = KNEX_DEBUG === 'true' ;
14
+
12
15
module . exports = {
13
16
client : DB_CLIENT ,
14
17
connection : {
@@ -24,4 +27,6 @@ module.exports = {
24
27
migrations : {
25
28
tableName : 'knex_migrations' ,
26
29
} ,
30
+ debug,
31
+ asyncStackTraces : debug ,
27
32
} ;
You can’t perform that action at this time.
0 commit comments