Skip to content

Commit 3b94576

Browse files
committed
Remove unnecessary server config
1 parent e0fc5c7 commit 3b94576

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

server/config.js

-18
This file was deleted.

server/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { StaticRouter, matchPath } from 'react-router';
66
import render from './render';
77
import routes from 'routes';
88
import ErrorPage from 'components/ErrorPage';
9-
import config from './config';
109
import configureStore from 'store';
1110
import serveStatic from 'serve-static';
1211
import compression from 'compression';
1312
import App from 'containers/App';
1413
import Api from './api';
1514

15+
const { PORT, APPLICATION_PORT } = process.env;
1616
const app = new Express();
17-
const port = config.port;
17+
const port = PORT || APPLICATION_PORT || 3000;
1818

1919
// gzip
2020
app.use(compression());

0 commit comments

Comments
 (0)