2016-09-07 1 views
1

J'essaie de télécharger mon application qui fonctionne actuellement dans le Swisscom App Cloud.Comment télécharger l'application avec le CLI de Swisscom App Cloud?

Par conséquent j'ai installé le plugin cf-download.

Ma commande: cf download app-name /public --verbose --omit /vendors --overwrite

Après avoir exécuté cette commande, je reçois l'erreur suivante:

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

est-cf download donc pas possible dans le Swisscom App Cloud? J'ai également essayé cf files. Même erreur

Répondre

4

Vous pouvez le faire avec un 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.

étape par étape:

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

Je l'ai testé avec succès sur Swisscom App Cloud.