0

我正在点击下面的链接来测试智能应用工具包, https://www.cumulocity.com/guides/web/smart-toolkit/

我可以到达“5. 创建登录屏幕”并看到在后台运行 GRUNT SERVER 的登录页面。但是,我没有运气使用我的帐户登录。我从 telstra-iot.com 获得了我的试用帐户,我的主页是 m2mone.telstra-iot.com。

我将 hello-core-api/js/app.js 中的“demos.cumulocity.com”更改为“www.telstra-iot.com”,但仍然没有运气。

我输入租户:m2mone,用户名:admin,密码:xxxxxx。我错过了什么吗?

4

2 回答 2

0

默认情况下,grunt 服务器任务会引导到 developer.cumulocity.com,因为您使用的是不同的安装 (telstra-iot),所以它对您不起作用。

执行 grunt 任务时可以定义主机

grunt server --host=m2mone.telstra-iot.com
于 2015-07-14T07:45:24.133 回答
0

您需要https://m2mone.telstra-iot.com/用作baseUrl

c8yCumulocityProvider.setBaseUrl('https://m2mone.telstra-iot.com/');

您还可以在那里设置租户,这样您就不需要在登录页面中填写租户:

c8yCumulocityProvider.setTenant('m2mone');

现在您可以在登录页面中将租户字段留空,如果需要,您可以完全从登录页面中删除租户字段。

于 2015-07-14T08:20:17.717 回答