Correct deploy script to process the correct dashboard 0.2.0
authorymh <ymh.work@gmail.com>
Thu, 20 Sep 2018 18:44:52 +0200
changeset 14 521d1a8c7150
parent 13 b298809518a0
child 15 799d0e9aa1dd
Correct deploy script to process the correct dashboard
deploy/deploy.yml
--- a/deploy/deploy.yml	Thu Sep 20 18:13:36 2018 +0200
+++ b/deploy/deploy.yml	Thu Sep 20 18:44:52 2018 +0200
@@ -129,7 +129,7 @@
     - name: remove build
       file: path="{{clientjs_dir}}/packages/{{item}}" state=absent
       with_items:
-        - annotation-dashboard-explorunivers/build
+        - "{{dashboard_name}}/build"
         - dashboard-components/lib
 
     - name: clientjs npm install
@@ -147,15 +147,16 @@
       args:
         chdir: "{{clientjs_dir}}/packages/dashboard-components"
 
-    - name: clientjs annotation-dashboard-explorunivers build
+    - name: clientjs dashboard build
       command: npm run build
       args:
-        chdir: "{{clientjs_dir}}/packages/annotation-dashboard-explorunivers"
+        chdir: "{{clientjs_dir}}/packages/{{dashboard_name}}"
       environment:
         REACT_APP_API_URL: "{{annotations_api_url}}/annotations"
         REACT_APP_VIA_BASE_URL: "{{via_base_url}}"
         REACT_APP_DISCUSSION_URL: "{{discussions_url}}/"
 
+
 #
 # Static server
 #