Netics
Netics

Reputation: 35

Deploy wso2 Carbon (*.car-files) applications from command line

We need to deploy a large amount of different carbon applications on many WSO2 ESB installations many times - release-by-release. So for automation of this process, we want to write shell-scripts which will deploy apllications automatically. Is there any possibility of such automation?

Upvotes: 2

Views: 1088

Answers (2)

Philippe
Philippe

Reputation: 11

copy your car file in the repository/deployment/server/carbonapps sub-directory of your ESB server. Il will be automatically deplyoyed. To undeploy the App just delete the file.

Upvotes: 1

Jean-Michel
Jean-Michel

Reputation: 5946

You should have a look to mavent-car-deploy-plugin, it offers you a way to deploy your car with such a command-line :

mvn clean deploy -Dhost=localhost -Dport=9443

And undeploy it :

mvn clean deploy -Dhost=localhost -Dport=9443 -Doperation=undeploy

see https://docs.wso2.com/display/DVS370/Deploying+a+CAR+File+with+the+Maven+Plug-In

Upvotes: 2

Related Questions