问题
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