zoukankan      html  css  js  c++  java
  • cordova 热更新

    1.根目录.chcpenv

    {
      "content_url": "http://106.13.216.173:5636/hotpush",
      "config_url": "http://106.13.216.173:5636/hotpush/chcp.json"
    }
    // 线上
    {
      "content_url": "https://app.xx.io",
      "config_url": "https://app.xx.io/chcp.json"
    }
    

    2.根目录.cordova-hcp.json

    {
      "name": "alan",
      "ios_identifier": "",
      "android_identifier": "",
      "update": "resume",
      "content_url": "http://106.13.216.173:5636/hotpush"
    }
    // 线上
    {
      "name": "xx",
      "ios_identifier": "",
      "android_identifier": "",
      "update": "start",
      "content_url": "https://app.xx.io"
    }
    

    3.根目录.config.xml

    <chcp>
        <auto-download enabled="true" />
        <auto-install enabled="true" />
        <config-file url="http://106.13.216.173:5636/hotpush/chcp.json" />
        <native-interface version="1" />
    </chcp>
    // 线上
    <chcp>
        <auto-download enabled="true" />
        <auto-install enabled="true" />
        <config-file url="https://app.xx.io/chcp.json" />
        <native-interface version="1" />
    </chcp>
    
    

    4.命令

    cordova-hcp build

  • 相关阅读:
    DHCP脚本
    7.31
    7.30
    7.26
    7.24
    VLAN与三层交换机
    静态路由配置
    7.17
    四次挥手
    TCP三次握手,四次挥手
  • 原文地址:https://www.cnblogs.com/alantao/p/13054325.html
Copyright © 2011-2022 走看看