To the Brass 
Cannon Webboard
Established 1986

Kevin Martin - PO Box 82783 - Portland, OR 97282

Interactive ("Prep") Site Configuration

Weblogic configuration and administration by Randy Weinstein

There are three copies of the "prep" site -- QA, staging, and production.

    QA:
	LocalDirector -> Spitfire -> Falcon -> Voodoo

	Directory Stucture:
		/app/oursite
		/weblogic
		/log/weblogic
	Scripts:
		startWLsingle
		stopWLsingle

staging.oursite.com:1080 
	(resides on sabre)

	Directory Structure:
		/httpd/oursite
		/weblogic
		/var/log/weblogic
	Scripts:
		startWLsingle
		(none - just kill it)

Production:
	resides on production-1, -2, and -3 at [our colo site]
	Directory Stucture:
		/app/oursite
		/weblogic
		/log/weblogic
	Scripts:
		startWLS [server#]


Promotion Procedure for QA

Interactive content is divided between the web server and the app server. It is somewhat more complex than updating the static content site.

To deploy a new build of the interactive site to QA, run the script deploy.sh. It does the following:

The WEBLOGIC.PROPERTIES file still needs to be updated by hand:

ssh [APPSERVER]
pico /weblogic/server1/weblogic.properties
ssh whorfin
su -
deploy.sh [VERSION#] [AppServer] [WebServer]

For example:

	deploy.sh 2.9.0 falcon spitfire
You may need to use the full path if it is not in your path:
	/usr/local/bin/deploy.sh falcon spitfire
If you want to push to only an AppServer, or only a WebServer, enter "null" (with out the quotes) for the appropriate field; it cannot be left blank:
	deploy.sh 2.9.1 null spitfire
You will be repeatedly prompted to enter the root password. You should see the folowing output:
	Pushing new content to falcon:/app/oursite.new
	Backing up existing code
	Moving new code into place
	WLS Startup Initiated
	Pushing new code to WebServer: spitfire
	Deployment complete, cleaning up...
	Done.
	

Promotion Procedure for Production

The process is currently manual:

	ncftpget ftp://ft-test/ftpbuild-x.x.x.zip
	scp ftpbuild-x.x.x.zip production-4:

	ssh production-X
	sudo -u weblogic -s
	cd /app
	scp production-4:ftpbuild-x.x.x.zip .
	unzip ftpbuild-x.x.x.zip > foo
	rm foo
	rm -rf weblogic
	mv oursite oursite.x.x.x (where x.x.x is old version #)
	mv tax2000 oursite
		
	pico /weblogic/ftcluster/weblogic.properties (Update based changes in VSS)
	
	ps -ef | grep java
	kill [PID]
	kill [PID] (assuming there are 2 instances of WebLogic running on this server)
	
	/weblogic/startWLS [server#]
Note: The server# is the last octet of IP address that WLS is bound to. For example: FreeTax-5 is server135 and server136.
	tail -f /log/weblogic/weblogicXXX.log (where XXX is the server#)
		
	/weblogic/startWLS [server#]

	tail -f /log/weblogic/weblogicXXX.log
	Done.


Please Note

If a search engine dropped you directly into this document, you should go to the index page to find out what you're reading. This document is a record of a project from 1999-2000 -- it is not a current guide to installing any software product.