* TEST_ prefix is not used by CI anymore and there for serve no purpose * Part of overall goal to standardize env var injection to MODULE_VARNAME (ie. MYSQL_HOST for example) convention Backport of #203
This commit is contained in:
parent
a9dc15c180
commit
025c1f30ff
|
@ -13,10 +13,8 @@ var config = require('rc')('loopback', {test: {mysql: {}}}).test.mysql;
|
||||||
console.log(config);
|
console.log(config);
|
||||||
global.getConfig = function(options) {
|
global.getConfig = function(options) {
|
||||||
var dbConf = {
|
var dbConf = {
|
||||||
host: process.env.TEST_MYSQL_HOST || process.env.MYSQL_HOST ||
|
host: process.env.MYSQL_HOST || config.host || 'localhost',
|
||||||
config.host || 'localhost',
|
port: process.env.MYSQL_PORT || config.port || 3306,
|
||||||
port: process.env.TEST_MYSQL_PORT || process.env.MYSQL_PORT ||
|
|
||||||
config.port || 3306,
|
|
||||||
database: 'myapp_test',
|
database: 'myapp_test',
|
||||||
username: process.env.MYSQL_USER || config.username,
|
username: process.env.MYSQL_USER || config.username,
|
||||||
password: process.env.MYSQL_PASSWORD || config.password,
|
password: process.env.MYSQL_PASSWORD || config.password,
|
||||||
|
|
Loading…
Reference in New Issue