removed the confiure page method
This commit is contained in:
parent
4d9a255a3b
commit
89c4b006c2
2 changed files with 7 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
import HomePage from 'pages/HomePage';
|
||||
import HomePage from 'pages/HomePage'; // or use the provided local homepage
|
||||
import AboutPage from 'pages/AboutPage';
|
||||
import LoginPage from 'containers/LoginPage';
|
||||
import ShowPage from 'pages/ShowPage';
|
||||
|
|
18
server.js
18
server.js
|
@ -23,11 +23,7 @@ function SpeechServer () {
|
|||
this.configureSlack = (slackConfig) => {
|
||||
require('./config/slackConfig.js').configure(slackConfig);
|
||||
};
|
||||
this.configureLogging = () => {
|
||||
require('./helpers/configureLogger.js')(logger);
|
||||
require('./helpers/configureSlack.js')(logger);
|
||||
};
|
||||
this.configureApp = () => {
|
||||
this.createApp = () => {
|
||||
// create an Express application
|
||||
const app = express();
|
||||
|
||||
|
@ -77,15 +73,13 @@ function SpeechServer () {
|
|||
|
||||
this.app = app;
|
||||
};
|
||||
this.initialize = (pages, models, routes) => {
|
||||
this.configureLogging();
|
||||
this.configureApp();
|
||||
this.updatePages(pages);
|
||||
this.updateModels(models);
|
||||
this.updateRoutes(routes);
|
||||
this.initialize = () => {
|
||||
require('./helpers/configureLogger.js')(logger);
|
||||
require('./helpers/configureSlack.js')(logger);
|
||||
this.createApp();
|
||||
this.server = http.Server(this.app);
|
||||
};
|
||||
this.blastoff = () => {
|
||||
this.start = () => {
|
||||
const db = require('./models');
|
||||
// sync sequelize
|
||||
db.sequelize.sync()
|
||||
|
|
Loading…
Add table
Reference in a new issue