Update to 2022-02-07 18:00

master
Daniel Berteaud 2 years ago
parent 7e7b6bd3f3
commit 8123bd8415
  1. 17
      roles/appsmith/tasks/install.yml
  2. 8
      roles/includes/webapps_set_install_mode.yml

@ -97,17 +97,22 @@
args:
chdir: "{{ appsmith_root_dir }}/src/app/client"
# Not sure why but yarn installs webpack 4.46.0 while appsmith wants 4.44.2
- name: Install correct webpack version
command: ./node_modules/yarn/bin/yarn add webpack@4.44.2 --ignore-engines
args:
chdir: "{{ appsmith_root_dir }}/src/app/client"
- name: Build the client
command: ./node_modules/.bin/craco --max-old-space-size=3072 build --config craco.build.config.js
args:
chdir: "{{ appsmith_root_dir }}/src/app/client"
- name: Remove Old Client
file:
path: "{{ appsmith_root_dir }}/client"
state: absent
- name: Copy the client
copy:
src: "{{ appsmith_root_dir }}/src/app/client/build"
dest: "{{ appsmith_root_dir }}/client"
remote_src: True
# Note : the client will be deployed in {{ appsmith_root_dir }}/client
# with a ExecStartPre hook of the server, which will take care of replacing
# placeholders with current settings. So no need to do it here

@ -21,7 +21,7 @@
- name: Set install mode to upgrade
set_fact: install_mode='upgrade'
when:
- version_file_stat.stat.exists
- current_version | string != version | string
- manage_upgrade | default(True)
#when:
# - version_file_stat.stat.exists
# - current_version | string != version | string
# - manage_upgrade | default(True)

Loading…
Cancel
Save