From 6c64f919aa45ac3c9ae03cfc11d91ffa77fbaa09 Mon Sep 17 00:00:00 2001 From: Yujith Isura Date: Wed, 2 Oct 2019 17:48:20 +0530 Subject: [PATCH] add nomination url to docker file --- Staging.Dockerfile | 2 ++ src/App.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Staging.Dockerfile b/Staging.Dockerfile index 077f324..eba860f 100644 --- a/Staging.Dockerfile +++ b/Staging.Dockerfile @@ -8,6 +8,8 @@ RUN npm ci ENV REACT_APP_API_BASE_URL=https://apim-gw.ecstag.opensource.lk/nominations/0.9 ENV REACT_APP_PDF_GENARATION_SERVICE_URL=http://nominations-pdf-20keps.pxe-dev-platformer-1552477983757-1pdna.svc ENV REACT_APP_AUTH_BASE_URL=https://authnominations.ecstag.opensource.lk +ENV REACT_APP_NOMINATION_URL=https://nominations.ecstag.opensource.lk + RUN npm run build FROM nginx:1.15 diff --git a/src/App.js b/src/App.js index fa07a7b..5792552 100644 --- a/src/App.js +++ b/src/App.js @@ -49,7 +49,7 @@ class App extends React.Component { super(props); if (process.env.NODE_ENV === 'production'){ if (!getCookie('somekey')) { - window.location.href = `${process.env.REACT_APP_API_BASE_URL}/signin` + window.location.href = `${process.env.REACT_APP_NOMINATION_URL}/signin` } }else{ if (!getCookie('somekey')) {