Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Current »

Overview

Describes how to redeploy the application to the WCI term-server.com server after a code update.

Details

  1. Log into the server 10.230.174.16
    1. You'll need to be able to sudo su - to root and ec2-tomcat.

  2. Update code:

    cd ~/code
    git pull
  3. Build all of the code, making sure to choose the correct "config.artifactId" for your environment.  Shown is "prod" configuration:

    cd ~/code
    mvn -Dconfig.artifactId=term-server-config-prod clean install
  4. Stop tomcat, clear cache,and remove the currently deployed .war files (and associated folders):

    # Stop the tomcat7 server
    service tomcat7 stop
    /bin/rm -rf /var/lib/tomcat7/work/Catalina/localhost/term-server-rest
    /bin/rm -rf /var/lib/tomcat7/webapps/term-server-rest
    /bin/rm -rf /var/lib/tomcat7/webapps/term-server-rest.war
  5. Update the database if needed:

    mvn clean install -Drun.config=/home/ihtsdo/config/config.properties -Dhibernate.hbm2ddl.auto=update
  6. Update file modification date to prevent caching issues:

    cd ~/code
    set date = `date +%Y%m%d%H%M`
    touch -t $date `find . -name "*"`
    
    
    
  7. Deploy war:

    /bin/cp -f ~/code/rest/target/term-server-rest*war /var/lib/tomcat7/webapps/term-server-rest.war
  8. Start service:

    service tomcat7 start

     

     

  • n/a

 

 

  • No labels