Skip to content

Instantly share code, notes, and snippets.

@dwins
Created March 17, 2010 20:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dwins/335681 to your computer and use it in GitHub Desktop.
Save dwins/335681 to your computer and use it in GitHub Desktop.
Shell commands to start up GeoServer with a fresh datadir every time
# run in the geoserver webapp dir:
cd geoserver/src/web/app/
# If you use SVN
rm -rf /tmp/release
svn export ../../../data/release/ /tmp/release/
mvn jetty:run -DGEOSERVER_DATA_DIR=/tmp/release/
# if you use git-svn
git clean -xdf -- ../../../data/release/
git checkout -f -- ../../../data/release/
mvn jetty:run -DGEOSERVER_DATA_DIR=../../../data/release/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment