How to Create and Process a Deploy
This topic explains how to create and process deploys. This is done in the following order:
Engineer: Create a deploy.
Engineer: Send the correct files to the system administrator.
System administrator: Process the delivered files.
System administrator: Perform a rollback if necessary.
See also Check Configuration Files for information about migrating configuration files from one version to another.
In This Topic
Create the Deploy
Create a settings.xml for the Target Environment
A deploy is always created with a specific target environment in mind. For example, a deploy can specifically be created for a test environment. For each target environment you need a separate settings.xml. For a test environment, copy the settings.xml to settings-test.xml and then adjust the properties in the settings-test.xml file. The typical properties you should check to ensure they are correct are:
Pathnames
Hostnames
Database properties
Usernames/passwords
Build the Deploy using Maven
After the properties have been set in the target environment, execute the following in a Command prompt:
mvn -s settings-test.xml -P build-deploy clean package assembly:assembly
A new folder with the name target is created which will contain two folders and one ZIP file.
What to Deliver to the System Administrator
After the deploy has been built, a ZIP file is present in the target folder. The default name of the ZIP file is webmanager-webmanager-1.0-SNAPSHOT.zip. Send the following files to the system administrator of the target environment:
webmanager-backend-webapp-1.0-SNAPSHOT.war(present in the root of the ZIP file);webmanager-static-webapp-1.0-SNAPSHOT.war(present in the root of the ZIP file);Gather all plugins into one new ZIP file.
All plugins present in the
edition-bundlesdirectory of the unzipped archive.
Process the Deploy
After receiving the files from the developer, the system engineer has to perform the following steps in order to process those files:
Stop the web server (Tomcat, JBoss or WebSphere).
To support a rollback, back up the following folders and files:
/vol/www/tomcat-mywebsite/deploy/webmanager-backend-webapp-1.0-SNAPSHOT.war/vol/www/mywebsite/web-docs/wm/
Create a backup of your relational database,
Remove the content of the following folders:
/vol/www/mywebsite/work/edition-bundles//vol/www/mywebsite/work/osgi/*/vol/www/<tomcat-installation-dir>/work/*/vol/www/<tomcat-installation-dir>/temp/*
Remove the directory
/vol/www/tomcat-mywebsite/deploy/web.Copy
webmanager-backend-webapp-1.0-SNAPSHOT.warto/vol/www/tomcat-mywebsite/deploy/.Unzip the
webmanager-static-webapp-1.0-SNAPSHOT.warto/vol/www/mywebsite/web-docs/(overwrite all).Copy all files from the
edition-bundlesdirectory to/vol/www/mywebsite/work/edition-bundles/.If one was delivered, unzip the plugin ZIP file to
/vol/www/mywebsite/work/deploy(overwrite all).Restart the web server.