Skip to content

Commit

Permalink
put old behaviour on connections.js ( default value )
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Oct 15, 2017
1 parent dbc4143 commit 99106e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports.connections = {
host: process.env.MYSQL_HOST_TEST || 'localhost',
port: process.env.MYSQL_PORT_TEST || 3306,
user: process.env.MYSQL_USER_TEST || 'root',
password: process.env.MYSQL_PASSWORD_TEST,
password: (typeof process.env.MYSQL_PASSWORD_TEST !== 'undefined') ? process.env.MYSQL_PASSWORD_TEST : 'root',
database: process.env.MYSQL_DATABASE_TEST || 'gladystest'
},

Expand All @@ -54,7 +54,7 @@ module.exports.connections = {
host: process.env.MYSQL_HOST || 'localhost',
port: process.env.MYSQL_PORT || 3306,
user: process.env.MYSQL_USER || 'root',
password: process.env.MYSQL_PASSWORD,
password: (typeof process.env.MYSQL_PASSWORD !== 'undefined') ? process.env.MYSQL_PASSWORD : 'root',
database: process.env.MYSQL_DATABASE || 'gladys'
},

Expand Down

0 comments on commit 99106e8

Please sign in to comment.