зеркало из https://github.com/mozilla/fxa.git
added mysql.database to test.json config
This commit is contained in:
Родитель
53ef9f86e7
Коммит
582d09a22f
|
@ -119,12 +119,6 @@ if (process.env.CONFIG_FILES) {
|
|||
// set the public url as the issuer domain for assertions
|
||||
conf.set('domain', url.parse(conf.get('public_url')).host);
|
||||
|
||||
if (conf.get('env') === 'test') {
|
||||
if (conf.get('kvstore.backend') === 'mysql' || conf.get('kvstore.cache') === 'mysql') {
|
||||
conf.set('mysql.database', 'test');
|
||||
}
|
||||
}
|
||||
|
||||
conf.validate();
|
||||
|
||||
console.log('configuration: ', conf.toString());
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
{
|
||||
"env": "test",
|
||||
"secretKeyFile": "./test/config/secret-key.json",
|
||||
"publicKeyFile": "./test/config/public-key.json",
|
||||
"env": "test",
|
||||
"secretKeyFile": "./test/config/secret-key.json",
|
||||
"publicKeyFile": "./test/config/public-key.json",
|
||||
"kvstore": {
|
||||
"backend": "memory"
|
||||
},
|
||||
"mysql": {
|
||||
"database": "test"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче