In the previous lessons, you deleted certain versions of
the components. In this lesson, you add those versions again to simulate
deploying a new version of the components.
The web application that you deployed in the previous lesson
included version 1.0 of the web component and database component.
Version 1.1 of these components includes a new item for the online
store: a Bichon in the Dogs category.
- Verify that Bichon is not available in
the Dogs category:
- Open the application by opening a web browser to the
following URL:
http://hostname:8080/JPetStore
- Click Enter the Store.
- Browse the Dogs category and verify that Bichon is
not available. The following figure shows some of the dogs
in this category:
- Import the new version of the database component:
- On the IBM® UrbanCode Deploy server,
click the Components tab and then click the
JPetStore-DB component.
- Click the Versions tab and then
click Import New Versions. Now,
version 1.1 is now available in the list of versions, as shown in
the following figure:
- Click the new version of the database component to open
its information page.
- Click the Configuration tab.
- Under Basic Settings, in the Type list,
select Incremental and then click Save.
This version is set to be an incremental upgrade rather
than a new version. Full versions are installed directly, without
installing prior versions first. Incremental upgrades start with prior
versions, and then the new version is installed over the prior versions.
The new database version is only an addition to the database, so it
requires the prior version of the component.
- In the same way, import version 1.1 of the web component. Do not change the Type setting of the
web component. The application component does not have any additional
versions.
- On the environment, run the application process again. In the Run Process window, be sure to select Latest
Version for each of the components, as shown in the following
figure. Optionally, you can select the Only Changed Versions check
box so that the server deploys only the components with new versions.
In this case, the server runs the component processes only for the
web and database components.
- In your web browser, reload the web application and explore
the Dogs category to see the new Bichon, as shown
in the following figure: This new item demonstrates
that the database component is updated to version 1.1
- Click the Product ID for Bichon and then
the Item ID to see the product page for Bichon. The new graphic for this item demonstrates that the web component
is updated to version 1.1.