We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10acf5 commit cc46463Copy full SHA for cc46463
test/knexfile.js
@@ -1,4 +1,4 @@
1
-module.exports = {
+var config = {
2
client: process.env.DB_CLIENT || 'mysql',
3
connection: {
4
host: process.env.DB_HOST || 'localhost',
@@ -9,4 +9,11 @@ module.exports = {
9
tableName: 'migrations'
10
},
11
debug: process.env.DEBUG || false
12
-}
+}
13
+
14
+// Workaround for knex not playing well with nconf
15
+if (process.env.NODE_ENV) {
16
+ config = { [process.env.NODE_ENV]: config }
17
18
19
+module.exports = config;
0 commit comments