Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use env file instead of json for frontend configuration #212

Draft
wants to merge 1 commit into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/rciam-metrics/tasks/configure-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
---
# After creating react configuration, github action will move the file to the react application
# before building
- name: Create react configuration file locally
- name: Create react env file locally
template:
src: "react/config.json.j2"
dest: "{{ inventory_dir }}/files/{{ metrics_hostname | replace('.', '_') }}.json"
src: "react/env.j2"
dest: "{{ inventory_dir }}/files/.env"
mode: 0400
backup: yes
delegate_to: localhost
3 changes: 0 additions & 3 deletions roles/rciam-metrics/templates/react/config.json.j2

This file was deleted.

2 changes: 2 additions & 0 deletions roles/rciam-metrics/templates/react/env.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{ front_end_configuration }}