Recent Changes - Search:

CONGO

PmWiki

edit SideBar

V2 /

EventJVhost

Steps to deploy a new customer

  • Nothing needs to be done on the web front end (ec2-web01)
  • in /etc/tomcat6/Catalina create a new subdir for the full hostname (blah.eventj.com)
  • In the subdir, create a ROOT.xml file:
	<Context docBase="/var/congo/wars/congo-2.1.0.7-SNAPSHOT.war">
<Parameter name="congo.home" value="/var/congo/blah.eventj.com/" override="false" />
		<Parameter name="log4j.xml.url" value="file:/var/congo/blah.eventj.com/log4j.xml" override="false" />
	</Context> 
  • in /etc/tomcat6/server.xml, make a new Host entry for the vhost:
	<Host name="blah.eventj.com" appBase="blah.eventj.com" unpackWARs="false" autoDeploy="true">
	        <Valve className="org.apache.catalina.valves.AccessLogValve?" directory="logs"  
			prefix="blah_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
	</Host>
  • Create the working home dir /var/congo/blah.eventj.com
    • Copy in a congo.properties file and set these parameters:
 database.autoupgrade=true 
 database.host=eventjdatastore.ck6kx2auo1hd.us-east-1.rds.amazonaws.com
 database.name=blah
 database.password=blah
 database.type=mysql
 database.user=blah
  • Load the current schema into the instance:
 cd ~/lb/
 mysql -uroot -p -h eventjdatastore.ck6kx2auo1hd.us-east-1.rds.amazonaws.com blah < congov2.schemaonly.dump
 mysql -uroot -p -h eventjdatastore.ck6kx2auo1hd.us-east-1.rds.amazonaws.com blah < congov2.DATABASECHANGELOG
 mysql -uroot -p -h eventjdatastore.ck6kx2auo1hd.us-east-1.rds.amazonaws.com blah < congov2.DATABASECHANGELOGLOCK
  • Create the admin user
 mysql -uroot -p -h eventjdatastore.ck6kx2auo1hd.us-east-1.rds.amazonaws.com blah < congov2.regmaster.sql
Edit - History - Print - Recent Changes - Search
Page last modified on March 14, 2012, at 08:57 PM