Skip to content

Commit

Permalink
update react app path, fix remote task name
Browse files Browse the repository at this point in the history
  • Loading branch information
machariamuguku committed Oct 8, 2021
1 parent bc152a6 commit 5e02f94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ react_versioned_path: "{{ react_codebase_path }}-versioned"
# where the repository is cloned
react_checkout_path: "{{ react_versioned_path }}/{{ ansible_date_time['epoch'] }}"
# where the actual app package is
react_app_path: "{{ react_checkout_path }}"
react_app_path: "{{ react_checkout_path }}/app"
react_log_path: "/var/log/{{ react_app_name }}"
react_max_versioned_folders: 10

Expand All @@ -52,6 +52,6 @@ react_build_default_cmd: build

# app settings
react_app_settings:
REACT_APP_WEBSITE_NAME: 'React Example App'
REACT_APP_WEBSITE_NAME: "React Example App"
GENERATE_SOURCEMAP: "false"
SKIP_PREFLIGHT_CHECK: "true"
2 changes: 1 addition & 1 deletion molecule/resources/playbooks/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
GENERATE_SOURCEMAP: "false"
SKIP_PREFLIGHT_CHECK: "true"
react_remote_js_build: true
react_app_path: "{{ react_checkout_path }}"
react_app_path: "{{ react_checkout_path }}/app"
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
become: true
become_user: "{{ react_system_user }}"

- name: Build app locally
- name: Build app remotely
become_user: "{{ react_system_user }}"
become: true
environment: "{{ item.env | default(react_build_cmds_default_env) }}"
Expand Down

0 comments on commit 5e02f94

Please sign in to comment.