Skip to content

Instantly share code, notes, and snippets.

@MinCha
Created January 10, 2014 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MinCha/8347791 to your computer and use it in GitHub Desktop.
Save MinCha/8347791 to your computer and use it in GitHub Desktop.
Deploy Sample Script
#!/bin/bash
cd /wave/build_deploy/service
rm -rf ./wave
git clone git@github.com:MinCha/wave.git
cd ./wave
mvn clean compile war:inplace -Dmaven-test.skip=true -Dphase=service
/wave/tomcat/bin/shutdown.sh
sleep 10
rm -rf /wave/tomcat/webapps/*
cp -rf ./src/main/webapp/* /wave/tomcat/webapps/
/wave/tomcat/bin/startup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment