Skip to content

Instantly share code, notes, and snippets.

@peterdietz
Last active December 30, 2015 22:19
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 peterdietz/7893272 to your computer and use it in GitHub Desktop.
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
#!/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