2
0

mint.yml 957 B

1234567891011121314151617181920212223242526272829
  1. - name: "local compile"
  2. hosts: localhost
  3. connection: local
  4. tasks:
  5. - name: "install dashboard dependencies"
  6. ansible.builtin.shell:
  7. cmd: yarn install
  8. chdir: "{{ playbook_dir }}/../dashboard"
  9. - name: "build dashboard"
  10. ansible.builtin.shell:
  11. cmd: yarn build
  12. chdir: "{{ playbook_dir }}/../dashboard"
  13. environment:
  14. NODE_OPTIONS: "--max_old_space_size=4096"
  15. PUBLIC_URL: /pcd
  16. REACT_APP_DEFAULT_LOCALE: "zh-Hans"
  17. REACT_APP_LANGUAGES: "en-US,zh-Hans,zh-Hant"
  18. REACT_APP_ENABLE_LOCAL_TOKEN: "true"
  19. REACT_APP_DOCUMENTS_SERVER: "{{ app_documents_server }}"
  20. REACT_APP_RPC_SERVER: "{{ app_rpc_server }}"
  21. REACT_APP_ASSETS_SERVER: "{{ app_assets_server }}"
  22. REACT_APP_API_SERVER: "{{ app_api_server }}"
  23. REACT_ICP_CODE: "{{ app_icp_code }}"
  24. REACT_APP_TOKEN_KEY: "token.20230919"
  25. - hosts:
  26. - php_fpm
  27. roles:
  28. - mint-v2