Advertisement
Guest User

Untitled

a guest
Nov 13th, 2017
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None
  1. #!/bin/sh
  2.  
  3. # build a new package to deploy
  4. mvn clean install
  5.  
  6. # check if the CATALINA_HOME variable has been set as this is the location to which the war file is to be deployed
  7. # a default value is used in case the installation cannot be found
  8. ${CATALINA_HOME:=/usr/local/Cellar/tomcat7/7.0.70/libexec}
  9.  
  10. # script to speed up deployment of the war file for development
  11. # The defaults are for a Tomcat installation via Homebrew
  12. # remove the war file, exploded application in Tomcat and any custom modules uploaded
  13. rm -fr $CATALINA_HOME/webapps/openmrs
  14. rm $CATALINA_HOME/webapps/openmrs.war
  15. rm -fr $HOME/.OpenMRS/modules/*
  16.  
  17. # copy the generated war file to the application folder
  18. cp target/openmrs.war $CATALINA_HOME/webapps
Advertisement
RAW Paste Data Copied
Advertisement