Package-for-deployment
From PTAGISWiki
8/11/2004 How to create a package for deployment
Determine the complete list of files that have changed. In this case: ptagis-1.0/web/sree/siteswitch.jsp
Edit the file ptagis-1.0/docs/ptagis-vdd.txt Edit ptagis-vdd.txt to describe the changes following this form:
2004-05-19a: bealeja - updated LDAPUser.java to account for unlimited attributes
defined on the object. Specifically, I reimplemented LDAPUser::initialize().
- updated manageAccount.jsp to change the choices for inetuserstatus
from 'enable','disable' to 'active','inactive'.
In this example, the vdd entry would look like this:
2004-08-11a: rday - altered siteswitch.jsp to link to web-served data files instead
of Sitescape forum files (which is too slow)
Create a tarball of the changed files and vdd document. The tarball should have its root directory be ptagis-1.0. In this example, I started in /dsk2 and issued this command:
- tar cvf ptagis-1.1-config-20040811a.tar ptagis-1.0/web/sree/siteswitch.jsp
a ptagis-1.0/web/sree/siteswitch.jsp 8K
You can check that the file contains the proper structure like so:
- tar tvf ptagis-1.1-config-20040811a.tar
tar: blocksize = 18 -rw-rw-r-- 126/444 7530 Aug 11 11:20 2004 ptagis-1.0/web/sree/siteswitch.jsp
Move the tarball to /dsk2/installs/ptagis-1.0
Update ptagis-vdd-pitblade.txt in that directory.
Create an installation and test document for the update. Since the files is ptagis-1.1-config-20040811a.tar The install document should be ptagis-1.1-config-20040811a.txt
Follow the form of:
=======================================
Installation Document 13:47, 4 January 2006 (PST)13:47, 4 January 2006 (PST)13:47, 4 January 2006 (PST)13:47, 4 January 2006 (PST)~ PTAGIS Web Site project
- New/Changed Functionality
2004-04-08a: nagyma - updated the configuration file and changed the CLASSDIR location to classes
This way compilation will not automatically overwrite the deployed class files
- Installation instructions:
2004-04-08a: nagyma - unzip ptagis-1.1-config-20040408a.zip - either
+ copy the bin/config.sh file in place and update its content to
reflect the setting on the machine
+ or alternatively, just update the old bin/config.sh, so the CLASSDIR
and CLASSPATH settings are the following
CLASSDIR=${PROJROOT}/classes
CLASSPATH=${CLASSDIR}:${WEBDIR}/WEB-INF/classes:${CLASSPATH}
- create a subdirectory called classes under the ptagis-1.0 root directory
- Test instructions:
2004-04-08a: - compile a class file
bin/make.sh src/db/DBconnection.java
- verify that the class file got placed in the classes subdirectory
- File List:
(A=added, M=modified, D=deleted)
> ptagis-1.0: M bin/config.sh
=================================
Now the package is ready to deploy to production.
ftp the file and the install document to sebastes:/global/ds1/pitweb/src/ptagis-1.0 unpack the package in the work directory deploy according to the install document test according to the install document
