You can set up your development environment so that you
can build your mobile applications and, by using the IBM® Worklight® plug-in
for IBM UrbanCode Deploy, deploy
the build results to the IBM Worklight Server.
Before you begin
Ensure that the following software is installed and running:
- IBM UrbanCode Deploy
- IBM Worklight Server with the Application Center
and Console running.
- IBM Worklight Studio
Extra software might be required, such as:
- Source control management (SCM) system.
- Build engine.
- Application server.
- Database.
About this task
Before you can build and deploy mobile applications to the Worklight Server, you must
complete the following configuration steps:
- Configure the build system.
- Configure UrbanCode Deploy, including the following steps:
- Configure Worklight Server Console, including
the following steps:
- Create and configure a database.
- Configure the Worklight project
Web Archive (WAR) file.
Procedure
After you set up the build, UrbanCode Deploy and Worklight Server console,
you can build and deploy mobile applications by using the following
high-level steps:
- Check in (commit) changes from IBM Worklight Studio
into a source control management (SCM) system.
- Build the application and add a new version to UrbanCode
Deploy.
Tip: Assign a version
to the mobile application that is deployed to the Application Center.
This version must match the version that is assigned in UrbanCode
Deploy. For example, if the mobile application has a commercial version
of 1.0 on the Application Center and the internal version from the
latest build is 16, assign version 1.0.16 to the application in UrbanCode
Deploy. Keeping the version numbers synchronized helps you to recover
if you encounter a problem. For example, if the latest version of
the mobile application was not deployed successfully to the Application
Center.
- Request deployment in UrbanCode Deploy.
- View the mobile artifacts in the Worklight Console, install, and test the
application from the Application Center.
Results
The mobile application artifacts are deployed to the Worklight Server and can be
installed on the target device.
What to do next
Optionally, create extra component and application processes
in UrbanCode Deploy to
roll
back deployments (for example, to recover from an error condition
or an incomplete deployment.)