Last active
December 30, 2015 22:19
-
-
Save peterdietz/7893272 to your computer and use it in GitHub Desktop.
Redeploy script for peterdietz/DSpace instance. Recompiles with maven, updates with ant, and restarts tomcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "Begin DSpace recompile+redeploy" | |
cd ~/Projects/DSpace | |
##Ensure git is up to date? | |
git pull | |
mvn package -DskipTests=true | |
cd dspace/target/dspace-installer/ | |
ant update | |
catalina stop -force | |
catalina start | |
echo "DSpace redeployed..." | |
##OSX 10.9/Mavericks Notification Center | |
osascript -e 'display notification "Code recompile + redeploy complete, back to work!" with title "DSpace"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment