ci: socket
Signed-off-by: Agnes Lin <agneslin.lin@ibm.com>
This commit is contained in:
parent
6be5213d04
commit
ca7e1424a4
|
@ -12,7 +12,7 @@ if (!process.env.CI) {
|
|||
process.env.MYSQL_HOST =
|
||||
process.env.MYSQL_HOST || process.env.MYSQL_HOST || 'localhost';
|
||||
process.env.MYSQL_PORT =
|
||||
process.env.MYSQL_PORT || process.env.MYSQL_PORT || 3307;
|
||||
process.env.MYSQL_PORT || process.env.MYSQL_PORT || 3306;
|
||||
process.env.MYSQL_USER =
|
||||
process.env.MYSQL_USER || process.env.MYSQL_USER || 'root';
|
||||
process.env.MYSQL_PASSWORD =
|
||||
|
|
|
@ -13,7 +13,7 @@ const config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql;
|
|||
global.getConfig = function(options) {
|
||||
const dbConf = {
|
||||
host: process.env.MYSQL_HOST || config.host || 'localhost',
|
||||
port: process.env.MYSQL_PORT || config.port || 3307,
|
||||
port: process.env.MYSQL_PORT || config.port || 3306,
|
||||
database: process.env.MYSQL_DATABASE || 'testdb',
|
||||
username: process.env.MYSQL_USER || config.username || 'root',
|
||||
password: process.env.MYSQL_PASSWORD || config.password || 'root',
|
||||
|
|
Loading…
Reference in New Issue