Skip to content

Instantly share code, notes, and snippets.

@jmayaalv
Last active October 21, 2015 20:04
Show Gist options
  • Save jmayaalv/4aae164c10637850970a to your computer and use it in GitHub Desktop.
Save jmayaalv/4aae164c10637850970a to your computer and use it in GitHub Desktop.
Stg Prod Relese
stg:prod)
SRCDIR=/Users/jmaya/Documents/workspace/release/st_george/prod/beluca
DESTDIR=stage-ims
DESTSERVER=stgweb1
IMSDIR=/usr/local/staging
cd $SRCDIR
git co st_george
git pull origin st_george
mvn clean install -DskipTests=true
cd ims-web
mvn war:exploded
;;
stg-edge:prod)
SRCDIR=/Users/jmaya/Documents/workspace/release/st_george/prod/beluca
DESTFILE=/Users/jmaya/Documents/workspace/release/st_george/prod/beluca/ms-edge/edge-core/target/ims-ms-edge*.jar
DESTSERVER=stgweb1
EDGEDIR=/usr/local/staging/ims/stage-edge
cd $SRCDIR
git fetch origin
git co ms-edge
git pull origin ms-edge
mvn install -DskipTests=true
cd $SRCDIR/common
mvn install
cd $SRCDIR/ms-calendar
mvn install
cd $SRCDIR/ms-edge
mvn clean install package
rsync -avz --delete --progress $DESTFILE $DESTUSER@$DESTSERVER:$EDGEDIR
exit 0
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment