⚡️ #SAP BTP 快速开始(复制即用)
0) Cloud Foundry CLI 下载:https://github.com/cloudfoundry/cli

1-1) 登录(美国 US10-001)
cf login -a https://api.cf.us10-001.hana.ondemand.com/

1-2) 登录(新加坡 AP21)
cf login -a https://api.cf.ap21.hana.ondemand.com/

2) 推送容器(把 APP_NAME 换成你的应用名)
cf push APP_NAME --docker-image ghcr.io/uncleluogithub/mous:latest -m 512M --health-check-type port

3) 获取二维码/链接(日志)
cf logs APP_NAME --recent

4) 设置 UUID(从下方链接生成 YOUR_UUID)
cf set-env APP_NAME UUID YOUR_UUID

5) 固化配置并重建
cf restage APP_NAME

6) 重启应用
cf restart APP_NAME

7) 删除应用
cf delete APP_NAME -r
GitHub - cloudfoundry/cli: The official command line client for Cloud Foundry
 
 
Back to Top