2 Installing and Updating Workspace


2.7 Installing Workspace Organization  <<  2.8  >>  2.9 Changing Hostname of Workspace Organization 

2.8 Upgrading Workspace Organization

NOTE: 'verkkokauppa' as an organization name is used purely as an example. Replace this with real organization name.

Copy the new release to $WORKSPACE_HOME/releases

Extract the Workspace directory layout with the following command
# cd $WORKSPACE_HOME
# java -jar releases/Workspace_Standard-v(newversion)_shared-(newbuild).zip


Create a virtual host for the new Workspace version to $CATALINA_HOME/conf/server.xml
<Host name="(newbuild).ws-serverX.smilehouse.com" appBase="($WORKSPACE_HOME)/client_app_base" unpackWARs="false">
  <Context docBase="($WORKSPACE_HOME)/clients/workspace.client_standard_(newbuild).war" path=""/>
</Host>


Go to $WORKSPACE_HOME/installers/Workspace_Standard-v(newversion)_shared-(newbuild)

Upgrade the organization
sh upgrade.sh verkkokauppa


Move the organizations alias defintion(s) to inside the new Workspace virtualhost (build)
<Host name="(build).ws-serverX.smilehouse.com" appBase="($WORKSPACE_HOME)/client_app_base" unpackWARs="false">
  <Context docBase="($WORKSPACE_HOME)/clients/workspace.client_standard_(build).war" path=""/>
</Host>

<Host name="(newbuild).ws-serverX.smilehouse.com" appBase="($WORKSPACE_HOME)/client_app_base" unpackWARs="false">
  <Context docBase="($WORKSPACE_HOME)/clients/workspace.client_standard_(newbuild).war" path=""/>
  <Alias>verkkokauppa.ws-serverX.smilehouse.com</Alias>
</Host>


Restart Tomcat and see catalina.out for errors