Last active
April 16, 2019 20:31
-
-
Save gyfoster/2a454e96258f7bbbe3af5e43139b1ca7 to your computer and use it in GitHub Desktop.
A CLI script for deploying an app to a local WildFly server
This file contains hidden or 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 off | |
IF EXIST "C:\wildfly\standalone\deployments\myapp.jar*" ( | |
del "C:\wildfly\standalone\deployments\myapp.jar*" | |
) | |
IF EXIST "C:\myapp\target\myapp.jar" ( | |
copy C:\myapp\target\myapp.jar C:\wildfly\standalone\deployments\ | |
) | |
echo. & echo Deploy complete! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment