CI_CD/ant

[ant] tomcat 재기동 스크립트

홍또~ 2021. 4. 2. 14:11
<echo message="### WAS STOP ###" />
		 		    	    	    	
		 		   <sshexec host="${dev.was.ip}"
		 		    	username="${dev.was.user}"
		 		    	password="${dev.was.pass}"
		 		    	trust="yes"
		 		    	failonerror="no"
		 		    	command="${dev.tomcat.dir}/stop.sh > /dev/null" />


<sleep milliseconds="30000"/>

	<echo message="### WAS START ###" />
		 		 	    	
		 		    <sshexec host="${dev.was.ip}"
		 		 	username="${dev.was.user}"
		 		 	password="${dev.was.pass}"
		 		 	trust="yes"
		 		 	failonerror="no"
		 		 	command="${dev.tomcat.dir}/start.sh > /dev/null" />

배포 후 톰캣 재기동 해주는 스크립트