adds new chainquery default json #724

Merged
jessopb merged 1 commit from chainqueryDefault into master 2018-11-12 17:18:01 +01:00
2 changed files with 11 additions and 3 deletions

View file

@ -67,6 +67,13 @@ try {
slackConfig = require('./defaults/slackConfig.json'); slackConfig = require('./defaults/slackConfig.json');
} }
let chainqueryConfig;
try {
chainqueryConfig = require('../site/config/chainqueryConfig.json');
} catch (error) {
chainqueryConfig = require('./defaults/chainqueryConfig.json');
}
// ask user questions and create config files // ask user questions and create config files
inquirer inquirer
.prompt(mysqlQuestions(mysqlDatabase, mysqlUsername, mysqlPassword)) .prompt(mysqlQuestions(mysqlDatabase, mysqlUsername, mysqlPassword))
@ -196,6 +203,7 @@ inquirer
createConfigFile('lbryConfig.json', lbryConfig); createConfigFile('lbryConfig.json', lbryConfig);
createConfigFile('loggerConfig.json', loggerConfig); createConfigFile('loggerConfig.json', loggerConfig);
createConfigFile('slackConfig.json', slackConfig); createConfigFile('slackConfig.json', slackConfig);
createConfigFile('chainqueryConfig.json', chainqueryConfig);
}) })
.then(() => { .then(() => {
console.log('\nYou\'re all done!'); console.log('\nYou\'re all done!');

View file

@ -1,8 +1,8 @@
{ {
"host": "localhost", "host": "public.chainquery.lbry.io",
"port": "3306", "port": "3306",
"timeout": 30, "timeout": 30,
"database": "chainquery", "database": "chainquery",
"username": "lbry", "username": "speechpublic",
"password": "root" "password": "7uITJLwZRvHBZYS3JZDykD1-7hLVkVA1jDWfcgqi6QnC"
} }