Add mysql CI host
This commit is contained in:
parent
90ca8a5879
commit
f255850382
|
@ -7,8 +7,8 @@ var config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql;
|
||||||
global.getConfig = function (options) {
|
global.getConfig = function (options) {
|
||||||
|
|
||||||
var dbConf = {
|
var dbConf = {
|
||||||
host: config.host || 'localhost',
|
host: process.env.MYSQL_HOST || config.host || 'localhost',
|
||||||
port: config.port || 3306,
|
port: process.env.MYSQL_PORT || config.port || 3306,
|
||||||
database: 'myapp_test',
|
database: 'myapp_test',
|
||||||
username: config.username,
|
username: config.username,
|
||||||
password: config.password,
|
password: config.password,
|
||||||
|
|
Loading…
Reference in New Issue