Linux Project Automatic deployment script

Source: Internet
Author: User

#!/bin/bash
#设置变量
Cd/home
#停止tomcat
echo "Start stopping tomcat ..."

PS x | grep java | Grep-v grep | awk ' {print '} ' | Xargs kill-9
#ps x | grep java | Grep-v grep | awk ' {print '} '
#ps x | grep java | Grep-v grep | Kill-9 $
#echo $
#kill-9 $
PS x | grep java | Grep-v grep | awk ' {print '} '
Sleep 1
echo "Tomcat stopped"
echo "========================================================================="
echo "Checkout source code ..."
SVN co svn://172.16.16.220/mdmp/trunk/mdmp-all MDMP--username jirauser--password jirauser--no-auth-cache-- Non-interactive
echo "Complete Checkout source code"
echo "========================================================================="
CD MDMP
echo "Start clean mdmp project ..."
MVN clean

echo "Complete the Clean Mdmp project"
echo "========================================================================="
echo "Start deployment personalization ..."
echo "Complete personality Configuration"
echo "Start install Mdmp project ..."
MVN install-dmaven.test.skip=true
echo "Completing the Install FDAP project"
Cp-r/home/conf/config.properties mdmp-web/src/main/resources/config.properties
Cp-r deploy.sh/home/deploy.sh
CD Mdmp-web
echo "Start Tomcat"
MVN Tomcat:run

Linux Project Automatic deployment script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.