From 4580f1b18af1d6e2795c6f53eaac51f7feb5785c Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Fri, 8 May 2020 12:40:31 +0200 Subject: [PATCH] use the server port from the environment file --- server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.ts b/server.ts index ffa528ea3e..31cefe4ec5 100644 --- a/server.ts +++ b/server.ts @@ -23,11 +23,12 @@ import { join } from 'path'; import { REQUEST, RESPONSE } from '@nguniversal/express-engine/tokens'; import * as bodyParser from 'body-parser'; import * as cookieParser from 'cookie-parser'; +import { environment } from './src/environments/environment'; // Express server const app = express(); -const PORT = process.env.PORT || 4000; +const PORT = environment.ui.port || 4000; const DIST_FOLDER = join(process.cwd(), 'dist/browser'); // * NOTE :: leave this as require() since this file is built Dynamically from webpack