Folder structure #398
6 changed files with 6 additions and 5 deletions
|
@ -11,6 +11,7 @@ function SiteConfig () {
|
||||||
sessionKey: 'default',
|
sessionKey: 'default',
|
||||||
};
|
};
|
||||||
this.details = {
|
this.details = {
|
||||||
|
port : 3000,
|
||||||
title : 'Spee.ch',
|
title : 'Spee.ch',
|
||||||
host : 'default',
|
host : 'default',
|
||||||
description: 'Open-source, decentralized image and video sharing.',
|
description: 'Open-source, decentralized image and video sharing.',
|
||||||
|
|
2
index.js
2
index.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,6 @@ const http = require('http');
|
||||||
const logger = require('winston');
|
const logger = require('winston');
|
||||||
|
|
||||||
function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) {
|
function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) {
|
||||||
this.PORT = 3000;
|
|
||||||
this.start = () => {
|
this.start = () => {
|
||||||
this.configureConfigFiles();
|
this.configureConfigFiles();
|
||||||
this.configureLogging();
|
this.configureLogging();
|
||||||
|
@ -25,6 +24,7 @@ function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) {
|
||||||
mysqlAppConfig.configure(mysqlConfig);
|
mysqlAppConfig.configure(mysqlConfig);
|
||||||
const siteAppConfig = require('./config/siteConfig.js');
|
const siteAppConfig = require('./config/siteConfig.js');
|
||||||
siteAppConfig.configure(siteConfig);
|
siteAppConfig.configure(siteConfig);
|
||||||
|
this.PORT = siteAppConfig.details.port;
|
||||||
const slackAppConfig = require('./config/slackConfig.js');
|
const slackAppConfig = require('./config/slackConfig.js');
|
||||||
slackAppConfig.configure(slackConfig);
|
slackAppConfig.configure(slackConfig);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue