SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 6 forks source link

cf html5-push guid removes all other apps from repository #15

Open rahuldeepattri opened 5 years ago

rahuldeepattri commented 5 years ago

Description

cf html5-push guid removes all other apps from repository What is the expected behavior? Only one app should be pushed and all others should remain intact. What is the actual behavior? The new app is pushed but all others are deleted.

Environment

CLI Output

Set environment variable DEBUG=1, run the flow and paste output here.

micellius commented 5 years ago

@rahuldeepattri , thanks for your feedback!

Unfortunately, HTML5 Applications Repository service currently does not support partial upload of content associated with app-hostservice instance. This means that to update a single application, all applications of the same app-host service instance should be redeployed. This is a consistent behaviour across all deployment options, including GACD, deployer application and CF CLI plugin. Therefore, removing all content associated with app-host before uploading new content (a single application in your case) is an expected behaviour.

Once HTML5 Applications Repository expose API that allows to deploy/redeploy single application, we plan to add this functionality to cf html5-push as well. I'll forward your feature request to HTML5 Applications Repository product owner.

So far you can do the following:

  1. Create an empty directory and change your current working directory to it mkdir html5 && cd html5
  2. Run cf html5-list to see app-host-id of the application you want to redeploy
  3. Run cf html5-get --all <app-host-id> to download all applications deployed with same service instance (same app-host-id) to current working directory
  4. Replace or make changes to application you want to redeploy
  5. Redeploy all applications to the same app-host service instance cf html5-push -r
rahuldeepattri commented 5 years ago

@micellius Thanks for giving the work around as well. Will be useful to update github docs for the same.

rahuldeepattri commented 5 years ago

Pls move it to do again.

mdejavue commented 4 years ago

Hi, is it possible to have multiple app-host in the same space? And how to consume it from one approuter?

micellius commented 4 years ago

Hi @mdejavue ,

Yes, it is possible to consume multiple app-host instances in one Approuter.

gregorwolf commented 3 years ago

Hi @micellius,

would also be interrested in this feature. That would allow quicker cycles when a deployed version is needed to test specific features.

Best Regards Gregor