|
@@ -2,11 +2,11 @@ const express = require('express');
|
|
|
const webpack = require('webpack');
|
|
const webpack = require('webpack');
|
|
|
const path = require('path');
|
|
const path = require('path');
|
|
|
|
|
|
|
|
-const getConfig = require('config');
|
|
|
|
|
-const { getLogger } = require('modules/logger');
|
|
|
|
|
-const { getDBConnection } = require('modules/db');
|
|
|
|
|
|
|
+const getConfig = require('server/config');
|
|
|
|
|
+const { getLogger } = require('server/modules/logger');
|
|
|
|
|
+const { getDBConnection } = require('server/modules/db');
|
|
|
|
|
|
|
|
-const webpackConfig = require('../webpack.config');
|
|
|
|
|
|
|
+const webpackConfig = require('../../webpack.config');
|
|
|
|
|
|
|
|
function healthEndpoint(config, db, logger, app) {
|
|
function healthEndpoint(config, db, logger, app) {
|
|
|
app.get('/health', (req, res) => {
|
|
app.get('/health', (req, res) => {
|
|
@@ -35,7 +35,7 @@ function setupDevServer(config, db, logger, app) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function clientRoute(config, db, logger, app) {
|
|
function clientRoute(config, db, logger, app) {
|
|
|
- app.use(express.static(path.resolve(__dirname, '../static')));
|
|
|
|
|
|
|
+ app.use(express.static(path.resolve(__dirname, '../../static')));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function run() {
|
|
async function run() {
|