Add mysql CI host

This commit is contained in:
cgole 2015-11-17 13:23:52 -08:00
parent 90ca8a5879
commit f255850382
1 changed files with 2 additions and 2 deletions

View File

@ -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,