Created
August 21, 2012 14:51
-
-
Save vgrichina/3416221 to your computer and use it in GitHub Desktop.
Deploy webapp to Tomcat on remote Windows machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo on | |
sc \\%SERVER_NAME% stop Tomcat7 | |
rmdir /q /s %WEBAPPS_DIR%\%TARGET_PATH% | |
copy %WAR_FILE% %WEBAPPS_DIR%\%TARGET_PATH%.war | |
if errorlevel 1 goto Error | |
sc \\%SERVER_NAME% start Tomcat7 | |
if errorlevel 1 goto Error | |
exit 0 | |
:Error | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment