There are a number of ways to roll back a mobile application
that is deployed to IBM® Worklight® Server. One option
is to remove the native application from the Application Center and
then redeploy the application. Alternatively, you can manually roll
back deployments.
About this task
- To automate rolling back a mobile application deployment, create
processes that use the following general steps:
- At the component level, create a process that removes the native
application from the Worklight Application
Center, and overwrite any deployed artifacts by redeploying the application:
- To remove the native application from the Worklight Application Center, add the Remove Application from Application Center step.
Tip: When
you configure the Remove Application from Application Center step,
specifying the Operating System and Version removes a specific native
application, such as the version related to a failed deployment.
- Any artifacts that were successfully deployed to the Worklight Console are not removed. To overwrite
the deployed artifacts, add process steps to redeploy the mobile application
as described in the topic Deploying mobile applications.
The following example process removes the native application
from the Worklight Application
Center and redeploys the application:
- At the application process level, create a process that includes
the Rollback Component process step, and configure the step to call
the component process that you created above. The Rollback
Component step replaces the component version with an earlier
version.
In the following application process example, if the Install
Application step fails, then the Rollback Application step
runs.
- To manually roll back a mobile application deployment:
- Delete the native application from the Worklight Application Center.
- In the Worklight Console,
delete the adapters and applications. For details, see the topics
in the section Administering adapters and apps in Worklight Console in the Worklight Information Center.
- Redeploy the previous version of the mobile application from UrbanCode
Deploy.