Skip to content
Snippets Groups Projects
Commit c4731520 authored by Eike Cochu's avatar Eike Cochu
Browse files

updated build script

parent bfd9bcc4
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# =========================================================
# CONFIGURATION
# =========================================================
# configuration for remote deploy, requirements:
# * curl
# * a recent tomcat server is required (8+)
# * a user that is allowed to deploy, with following roles: tomcat, manager-gui, manager-script, manager-jmx, manager-status
# * installed and running tomcat manager application
DEPLOY="true"
TOMCAT_HOST="localhost"
TOMCAT_PORT="8000"
TOMCAT_USER="tomcat"
TOMCAT_PW="tomcat"
# =========================================================
# DO NOT EDIT AFTER THIS POINT
# =========================================================
LOG="build.log"
rm -f $LOG
......@@ -56,11 +75,13 @@ if [ $? -ne 0 ]; then
exit 1
fi
echo "" >> $LOG
echo "-------------------------------" >> $LOG
echo "deploying vipra-rest" | tee -a $LOG
echo "-------------------------------" >> $LOG
curl 'http://tomcat:tomcat@localhost:8000/manager/text/deploy?path=/vipra-rest&update=true' --upload-file ./vipra-rest/target/vipra-rest.war >> $LOG 2>&1
if [ $DEPLOY = "true" ]; then
echo "" >> $LOG
echo "-------------------------------" >> $LOG
echo "deploying vipra-rest" | tee -a $LOG
echo "-------------------------------" >> $LOG
curl "http://$TOMCAT_USER:TOMCAT_PW@$TOMCAT_HOST:$TOMCAT_PORT/manager/text/deploy?path=/vipra-rest&update=true" --upload-file ./vipra-rest/target/vipra-rest.war >> $LOG 2>&1
fi
echo "complete"
exit $?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment