Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add respace.sh redeploy script

...

Note: A classically trained database admin may cringe when they see you use the Graphical Query Builder to make joins, but its only because they have too much time on their hands.


respace.sh - Single-Step Redeploy Script

If you are doing development, and find yourself having to make changes to .java files, then cd to your DSpace-source directory, then maven, then cd dspace/target/..., then ant, then stop/start tomcat, and you find that tedious, why not automate that process?

Introducing, respace.sh. https://gist.github.com/peterdietz/7893272

 

To add it:

curl https://gist.githubusercontent.com/peterdietz/7893272/raw/07c0c19fc439af2690c2d91d867346628fc3cdbe/respace.sh > ~/Projects/DSpace/respace.sh
chmod +x ~/Projects/DSpace/respace.sh

 

Then to run it, from your ~/Projects/DSpace directory:

./respace.sh

 

I've gotten fancy with this respace script, it sends a message to OSX's Notification Center, letting you know when it finishes.