From f255850382eab3327f6c645b88cda55e27b6574f Mon Sep 17 00:00:00 2001 From: cgole Date: Tue, 17 Nov 2015 13:23:52 -0800 Subject: [PATCH] Add mysql CI host --- test/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/init.js b/test/init.js index 83bd213..1bfb10c 100644 --- a/test/init.js +++ b/test/init.js @@ -7,8 +7,8 @@ var config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql; global.getConfig = function (options) { var dbConf = { - host: config.host || 'localhost', - port: config.port || 3306, + host: process.env.MYSQL_HOST || config.host || 'localhost', + port: process.env.MYSQL_PORT || config.port || 3306, database: 'myapp_test', username: config.username, password: config.password,