|
|
@ -97,17 +97,22 @@ |
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ appsmith_root_dir }}/src/app/client" |
|
|
|
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 |
|
|
|
- name: Build the client |
|
|
|
command: ./node_modules/.bin/craco --max-old-space-size=3072 build --config craco.build.config.js |
|
|
|
command: ./node_modules/.bin/craco --max-old-space-size=3072 build --config craco.build.config.js |
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ appsmith_root_dir }}/src/app/client" |
|
|
|
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 |
|
|
|
# Note : the client will be deployed in {{ appsmith_root_dir }}/client |
|
|
|
# with a ExecStartPre hook of the server, which will take care of replacing |
|
|
|
# with a ExecStartPre hook of the server, which will take care of replacing |
|
|
|
# placeholders with current settings. So no need to do it here |
|
|
|
# placeholders with current settings. So no need to do it here |
|
|
|