在cumulocity中托管应用程序的设置

时间:2016-06-15 14:01:47

标签: cumulocity

我想通过上传的档案将应用程序配置为在cumulocity上托管。

documentation显示了两种应用类型,HOSTEDEXTERNAL

如果我将类型设置为HOSTED,则需要引用存储库的参数resourcesUrl

使用插件创建应用程序需要哪些步骤,
它是在cumulocity上托管而不是从存储库托管的?

cumulocity.json
{
    "availability": "PRIVATE",
    "contextPath": "appContextPath",
    "key": "appKey",
    "name": "appName",
    "type": "HOSTED",
    "resourcesUrl": "appResourceUrl",
    "imports": [
        "core/c8yBranding",
        "core/deviceList",
        "appKey/plugin",
        "devicemanagement/deviceRegistration",
        "devicemanagement/measurements",
        "devicemanagement/groupsHierarchy",
        "devicemanagement/location",
        "devicemanagement/deviceGroupList",
        "devicemanagement/deviceListMap",
        "devicemanagement/logViewer"
    ]
}

1 个答案:

答案 0 :(得分:1)

对于以ZIP文件形式上传的HOSTED个应用,有效resourcesURL将为"/"