Created
April 11, 2014 18:39
-
-
Save jacobhackl/10490973 to your computer and use it in GitHub Desktop.
Simple deployment script - windows
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
REM "press any key to continue with deploy. This will backup current IIS set and move the site from deploy into its place. Hit the X to cancel" | |
PAUSE | |
for /f "skip=1" %%d in ('wmic os get localdatetime') do if not defined mydate set mydate=%%d | |
SET source=C:\inetpub\wwwroot\SetSight3 | |
SET destination=C:\Code\Deploy\Archive\SetSight3_%mydate:~0,8% | |
REM use Robocopy %source% %destination% /S /MOV /XF web.config /MAX:100000 to ignore web.config | |
Robocopy %source% %destination% /S /MOVE /XF serverInfo.js web.config /MAX:100000 | |
SET source=C:\Code\Deploy\SetSight3 | |
SET destination=C:\inetpub\wwwroot\SetSight3 | |
Robocopy %source% %destination% /S /XF serverInfo.js web.config /MAX:100000 | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment