updated port to come from config
This commit is contained in:
parent
5b1d8f9d93
commit
f840281b4c
6 changed files with 6 additions and 5 deletions
|
@ -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.',
|
||||
|
|
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');
|
||||
|
||||
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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue