Redeploying solutions

Run the solutionManager redeploy command to reuse the same version of a solution on a development server. On production servers, you must create a new version of the solution and then run deploy for that version.

About this task

The solutionManager redeploy command runs with the local parameter or with the remote parameter. The local parameter redeploys the solution from the local file system. The remote parameter uses the HTTPS protocol to connect to the Liberty server and redeploys the solution from the specified server, which might be a remote host or the local host. The remote Liberty server must be started before you run the script.

Procedure

Run the solutionManager redeploy command on Windows or Linux as shown in the following examples. You must provide administrator authentication credentials to run the command with the remote parameter.
  • Run the script on Windows with the local parameter or with the remote parameter, and provide extra parameter values that are relevant to your deployment scenario.
    solutionManager redeploy local MySolution-0.1.esa --server=cisDev
    solutionManager redeploy remote MySolution-0.1.esa --host=localhost --port=9080 --username=user1 --password=user1pw --trustStoreLocation=C:\IBM\ODMInsights890\runtime\wlp\usr\servers\cisDev\resources\security\key.jks --trustStorePassword=truststore
  • Run the script on Linux with the local parameter or with the remote parameter, and provide extra parameter values that are relevant to your deployment scenario.
    ./solutionManager redeploy local MySolution-0.1.esa
    ./solutionManager redeploy remote MySolution-0.1.esa --host=localhost --port=9080 --username=user1 --password=user1pw --trustStoreLocation=/opt/ibm/ODMInsights890/runtime/wlp/usr/servers/cisDev/resources/security/key.jks --trustStorePassword=truststore