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 5 forks source link

Push of new app (different app.id) overwriting existing app #41

Closed piejanssens closed 3 years ago

piejanssens commented 3 years ago

Description

App 1

{
    "sap.app": {
        "id": "app1",
        "applicationVersion": {
            "version": "1.0.0"
        }
    }
}

App 2

{
    "sap.app": {
        "id": "app2",
        "applicationVersion": {
            "version": "1.0.0"
        }
    }
}
➜  ~ cf html5-push -n app-host myapp1
Redeploying HTML5 applications in org Company / space dev as piejanssens@company.com...
OK

➜  ~ cf html5-push -n app-host myapp2
Redeploying HTML5 applications in org Company / space dev as piejanssens@company.com...
OK

➜  ~ cf html5-list                      
Getting list of HTML5 applications in org Company / space dev as piejanssens@company.com...
OK

name   version   app-host-id                            service instance   visibility   last changed   
app2   1.0.0     e8891f85-50e4-4393-a139-ca787d0e392e   app-host           private      Thu, 15 Oct 2020 11:53:36 GMT   
➜  ~ 

Environment

CLI Output

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

micellius commented 3 years ago

@piejanssens , thanks for your feedback!

The issue you describing is expected behaviour. More info you can find in the following comment. To track the progress of partial deployment topic please refer the following issue: #15 Closing as duplicate.

piejanssens commented 3 years ago

I subscribed to the topic to follow the progress (which doesn't seem to have changed much since sept 2019). This should work meanwhile? cf html5-push -n app-host app1 app2 app3 app4 app5

If that works, then it would be good if this cf plugin supported passing a root app directory. That way you can easily maintain and push changes.

As soon as there is a change to push: cf html5-push -n app-host ./dev-space-app-host.