فهرست منبع

:bug: add REACT_APP_OPENAI_PROXY support

Jeremy Zheng 8 ماه پیش
والد
کامیت
7569e47be6

+ 2 - 0
deploy/roles/mint-dashboard-v4-build/tasks/main.yml

@@ -30,3 +30,5 @@
     REACT_APP_ICP_CODE: "{{ app_icp_code }}"
     REACT_APP_MPS_CODE: "{{ app_mps_code }}"
     REACT_APP_QUESTIONNAIRE_LINK: "{{ app_questionnaire_link }}"
+    # https://github.com/iapt-platform/mint/blob/5e81587433455cbc4994da49db5b880cf79e3539/dashboard-v4/dashboard/.env.orig#L17
+    REACT_APP_OPENAI_PROXY: "{{ app_openai_proxy_server }}"

+ 2 - 2
deploy/roles/mint-v2.1/tasks/main.yml

@@ -52,8 +52,8 @@
 
 - name: Upload docker shell script
   ansible.builtin.template:
-    src: containers/shell.sh.j2
-    dest: "{{ app_deploy_target }}/scripts/shell.sh"
+    src: containers/api-v8.sh.j2
+    dest: "{{ app_deploy_target }}/scripts/api-v8.sh"
     mode: "0555"
 
 - name: Setup laravel

+ 1 - 1
deploy/roles/mint-v2.1/templates/containers/shell.sh.j2 → deploy/roles/mint-v2.1/templates/containers/api-v8.sh.j2

@@ -1,3 +1,3 @@
 #!/bin/sh
 
-podman run --rm -it --events-backend=file --hostname=mint --network host -w {{ app_deploy_target }} -v /srv/{{ app_domain }}/clove:/srv/{{ app_domain }}/clove:z -v {{ app_deploy_target }}:{{ app_deploy_target }}:z {{ app_mint_image_name }} /bin/bash -l
+podman run --rm -it --events-backend=file --hostname=mint --network host -w {{ app_deploy_target }} -v /srv/{{ app_domain }}/clove:/srv/{{ app_domain }}/clove:z -v {{ app_deploy_target }}/api-v8:{{ app_deploy_target }}/api-v8:z {{ app_mint_image_name }} /bin/bash -l