separated dev configs
This commit is contained in:
parent
bdd2d45ab5
commit
0c1f81cced
7 changed files with 6 additions and 14 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
node_modules
|
node_modules
|
||||||
.idea
|
.idea
|
||||||
/config/sequelizeCliConfig.js
|
/devConfig/sequelizeCliConfig.js
|
||||||
/config/testingConfig.js
|
/devConfig/testingConfig.js
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
const testConfig = module.exports = {
|
|
||||||
testChannel : '@test',
|
|
||||||
testChannelId : '3b5bc6b6819172c6e2f3f90aa855b14a956b4a82',
|
|
||||||
testChannelPassword: '1234',
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = testConfig;
|
|
|
@ -28,10 +28,9 @@ function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) {
|
||||||
mysqlAppConfig.configure(mysqlConfig);
|
mysqlAppConfig.configure(mysqlConfig);
|
||||||
const slackAppConfig = require('./config/slackConfig.js');
|
const slackAppConfig = require('./config/slackConfig.js');
|
||||||
slackAppConfig.configure(slackConfig);
|
slackAppConfig.configure(slackConfig);
|
||||||
// print the config variables
|
// // print the config variables
|
||||||
console.log('configured config files');
|
// require('./helpers/configVarCheck.js')(mysqlAppConfig);
|
||||||
require('./helpers/configVarCheck.js')(mysqlAppConfig);
|
// require('./helpers/configVarCheck.js')(slackAppConfig);
|
||||||
require('./helpers/configVarCheck.js')(slackAppConfig);
|
|
||||||
};
|
};
|
||||||
this.configureLogging = () => {
|
this.configureLogging = () => {
|
||||||
require('./helpers/configureLogger.js')(logger);
|
require('./helpers/configureLogger.js')(logger);
|
||||||
|
|
|
@ -2,7 +2,7 @@ const chai = require('chai');
|
||||||
const expect = chai.expect;
|
const expect = chai.expect;
|
||||||
const chaiHttp = require('chai-http');
|
const chaiHttp = require('chai-http');
|
||||||
const { site: { host } } = require('../../config/speechConfig.js');
|
const { site: { host } } = require('../../config/speechConfig.js');
|
||||||
const { testChannel, testChannelId, testChannelPassword } = require('../../config/testingConfig.js');
|
const { testChannel, testChannelId, testChannelPassword } = require('../../devConfig/testingConfig.js');
|
||||||
const requestTimeout = 20000;
|
const requestTimeout = 20000;
|
||||||
const publishTimeout = 120000;
|
const publishTimeout = 120000;
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
Loading…
Add table
Reference in a new issue