Skip to content

Commit

Permalink
(feat) O3-2948 Add frontend config to RefApp (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
chibongho authored Mar 15, 2024
1 parent e7b77bd commit 955c966
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ To help us keep track of things, we ask that you suffix any files you add with e
those that should be part of the core package. For example, a form named `test_form.json` would become
`test_core-core_demo.json`.

Frontend configuration can be found in `frontend/config-core_demo.json`.

Thanks!
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
environment:
SPA_PATH: /openmrs/spa
API_URL: /openmrs
SPA_CONFIG_URLS:
SPA_CONFIG_URLS: config-core_demo.json
SPA_DEFAULT_LOCALE:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
Expand Down
1 change: 1 addition & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ RUN chmod +x /usr/local/bin/startup.sh
COPY nginx.conf /etc/nginx/nginx.conf

COPY --from=dev /app/spa /usr/share/nginx/html
COPY config-core_demo.json /usr/share/nginx/html

CMD ["/usr/local/bin/startup.sh"]
5 changes: 5 additions & 0 deletions frontend/config-core_demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"@openmrs/esm-styleguide": {
"Brand color #1": "#005d5d"
}
}

0 comments on commit 955c966

Please sign in to comment.