Skip to content

Commit

Permalink
Merge pull request #154 from YujithIsura/deployment
Browse files Browse the repository at this point in the history
add nomination url to docker file
  • Loading branch information
YujithIsura authored Oct 2, 2019
2 parents d4a8768 + 6c64f91 commit c56cdce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Staging.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit c56cdce

Please sign in to comment.