Currently I'm deploying an ASP.NET application to 4 live servers that are load balanced manually by zipping and dropping the files to the servers. I would like to know how can I write a BAT file and run from a command prompt to install the application to all the 4 servers. Any help or reference would be appreciated.
Asked
Active
Viewed 105 times
-1
-
Finally is better to write a simple console application to do this job because finally is not so simple if you like to avoid general errors, like unable to overwrite some file. – Aristos Jul 19 '16 at 10:51
1 Answers
0
Here are the steps if only files must to be updated (no the database)
Create a bat file and do that steps, after you have copy the updated files on some directory.
- Make a file called app_offline.htm on your root of your web site, and the site will go offline.
- Overwrite the new files over the site.
- Rename or delete the app_offline.html file
Here is the command to make the copy copy all files and folders from one drive to another drive using DOS (command prompt)