updated port to come from config

This commit is contained in:
bill bittner 2018-03-13 15:37:42 -07:00
parent 5b1d8f9d93
commit f840281b4c
6 changed files with 6 additions and 5 deletions

View file

@ -11,6 +11,7 @@ function SiteConfig () {
sessionKey: 'default',
};
this.details = {
port : 3000,
title : 'Spee.ch',
host : 'default',
description: 'Open-source, decentralized image and video sharing.',

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

View file

@ -12,7 +12,6 @@ const http = require('http');
const logger = require('winston');
function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) {
this.PORT = 3000;
this.start = () => {
this.configureConfigFiles();
this.configureLogging();
@ -25,6 +24,7 @@ function SpeechServer ({ mysqlConfig, siteConfig, slackConfig }) {
mysqlAppConfig.configure(mysqlConfig);
const siteAppConfig = require('./config/siteConfig.js');
siteAppConfig.configure(siteConfig);
this.PORT = siteAppConfig.details.port;
const slackAppConfig = require('./config/slackConfig.js');
slackAppConfig.configure(slackConfig);
};