"resourcesUrl" 在 cumulocity.json 不工作?

"resourcesUrl" in cumulocity.json not working?

我已经从这里 (https://cumulocity.com/guides/web/introduction/) 克隆了示例 myapplication,它可以工作。

但是,当我将 resourcesUrl 更改为指向我的 bitbucket 存储库时,它开始变得有趣了。

{ "availability": "MARKET", "contextPath": "myapplication", "key": "myapplication-appkey", "name": "myapplication", "resourcesUrl": "https://bitbucket.org/m2m/cumulocity-ui-plugin-examples/raw/develop/build", "type": "HOSTED", "imports": [ "core/c8yBranding", "core/deviceList", "core/deviceDetail", "myapplication/myplugin" ] } 每次我在 cumulocity 上切换到我的应用程序时,我的页面都会自动转发到 bitbucket。即使我从管理中删除 myapplication 并改回 "resourcesUrl" 原来的,并重新注册插件和应用程序,门户仍然继续将页面转发到 bitbucket。

我是不是遗漏了什么东西,如何带回来?谢谢


更新,

  1. 看起来用原始 resourcesUrl 重新注册应用程序今天确实有效,昨天我的 PC 可能有问题。(今天我发现这与我的 PC 无关,它们是 grunt appRegister 和应用程序之间的延迟真的在 Cumulocity 中更新,不知道延迟多长时间?)
  2. myapplication 被转发到 bitbucket 看起来与 repo 是私有的还是 public 有关。如果 repo 是 public,cumulocity 将按预期加载登录页面。如果是private,即使在Administration页面->Own applications->Myapplication->properties页面,设置用户名和密码并点击保存,仍然会进入bitbucket登录页面。 所以现在的问题是,如何 link("resourcesUrl") 到托管在 bitbucket 中的私人仓库?
  3. 如果把"availability"从"MARKET"改成"PRIVATE",申请页面会是404 no application found,这是预料之中的吗? 谢谢。

要指向受基本身份验证保护的 resourcesUrl(私有 bitbucket 存储库就是这种情况),必须将属性 resourcesUsernameresourcesPassword 添加到清单中。 在 bitbucket 的情况下,这些是 bitbucket 用户的凭据。我们建议只有读取权限的用户才能访问此存储库。

MARKET每个订阅它的租户都可以使用,PRIVATE应用程序只对拥有它的租户可用。例如,如果租户 'acme' 创建应用程序 'foo',则同一应用程序将仅在 acme.cumulocity.com/apps/foo.

可用