Skip to content

Commit

Permalink
Merge pull request #311 from YujithIsura/master
Browse files Browse the repository at this point in the history
local timezone added for docker file and miner bug fixed in nomination payment
  • Loading branch information
YujithIsura authored Mar 23, 2020
2 parents ed4c13d + 96d75ad commit 254b129
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ ENV REACT_APP_PDF_GENARATION_SERVICE_URL=https://apim-gateway.ecdev.opensource.l
ENV REACT_APP_AUTH_BASE_URL=https://nominations.ecdev.opensource.lk
ENV REACT_APP_NOMINATION_URL=https://nominations.ecdev.opensource.lk
RUN npm run build
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime

FROM nginx:1.15

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/NominationPaymentUpdate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class NominationPayments extends React.Component {
if(party_type === 'RPP'){
party_type='candidate payment rpp';
this.setState({partyType:'candidate payment rpp'});
}else if (party_type === 'IG') {
}else if (party_type === 'IND') {
party_type='candidate payment ig';
this.setState({partyType:'candidate payment ig'});
}
Expand Down
2 changes: 2 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ COPY --from=build /home/builder/Nomination/build/ /home/lsf/Nomination/build/
COPY --from=build /home/builder/Nomination/src/config/development.json /home/lsf/Nomination/prod.json
RUN chown lsf:lsf /home/lsf/Nomination/build/uploads
RUN chown lsf:lsf /home/lsf/Nomination/build/partySymbols
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime

ENV APP_ID 'nomination-api'

Expand Down

0 comments on commit 254b129

Please sign in to comment.