How to download the app with the CLI from the Swisscom App Cloud?

血红的双手。 提交于 2019-12-02 07:30:36

问题


I am trying to download my app wich is currently running in the Swisscom App Cloud.

Therefore I installed the cf-download plugin.

My command: cf download app-name /public --verbose --omit /vendors --overwrite

After running this command I get the following error:

The app is running on the Diego backend, which does not support this command.

Is cf download thus not possible in the Swisscom App Cloud?

I've tried cf files as well. Same error.


回答1:


You can do that with an API call

Apps API Downloads the staged droplet for an App GET /v2/apps/:guid/droplet/download When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the droplet.

step by step:

cf app $APP --guid
cf curl /v2/apps/$GUID/droplet/download > testing.gz
tar -xzvf testing.gz

I successfully tested it on Swisscom App Cloud.



来源:https://stackoverflow.com/questions/39365778/how-to-download-the-app-with-the-cli-from-the-swisscom-app-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!