SAP 云平台里 Global Account 和 Sub Account 的关系

在 Cloud Foundry 环境里,一个 Global Account 或者 Trial Account 能够创建多个 SubAccount,如图:


创建好的新的 subaccount:


一旦 subaccount 创建完毕之后,可以创建新的 org。



这个 org 又可以创建新的 space。


space 创建完毕之后即可部署应用上去。

在 neo 环境里,没有 org 和 space 的概念。一个 account 直接和应用关联,如下图所示:

如果是 trial 账号,无法新建 sub account。


选择 Services Catalog,根据关键字搜索到 WebIDE 服务,点击超链接打开 WebIDE:

进入 workspace,选择 Git->Clone Repository:

从我的 github clone:https://github.com/i042416/jerrylist

clone 完毕之后选择 Run->Run index.html, 检查 clone 是否成功。

正常情况下应该看到这个 UI5 应用:

将该应用从 git 的 workspace 部署到 SAP cloud platform 上:

Application Name 可以随便起,我用的 jerrylistfordemo。

成功部署后,在 HTML5 Application 能看到刚刚部署成功的应用 jerrylistfordemo:

点击该应用的超链接能看到访问这个应用的 url:

这样既可访问部署在 SAP 云平台上的应用。

同样的 url 也能在手机上访问:

先使用 WebIDE 创建一个 HTML5 应用。New->Project from Template:

从可选模板里选择 SAPUI5 Application:

创建一个 HTML5 Module,取名为 frontend


自动创建了如下的项目文件。

对这个工程进行 build:

build 成功后,将工程文件导出到本地,生成 mta1.zip.
进入 mta1 文件夹,执行命令
java -jar mta.jar --build-target=CF --mtar=jerry.mtar
会生成命令行参数--mtar 指定的文件 jerry.mtar。

最后,使用 cf login 登录 cloud foundry:


使用命令 cf deploy jerry.mtar 即可把本地文件 jerry.mtar 部署到 cloud foundry 上:


完毕之后即可在 SAP 云平台的 Cockpit 里看到成功部署的 HTML5 应用。

单击超链接即可打开该应用。

版权声明: 本文为 InfoQ 作者【Jerry Wang】的原创文章。
原文链接:【http://xie.infoq.cn/article/9a0807c56ec8085fdf01c9b5e】。文章转载请联系作者。
评论