From the course: Deploying ASP.NET Applications

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Scripted deployment to IIS

Scripted deployment to IIS

From the course: Deploying ASP.NET Applications

Start my 1-month free trial

Scripted deployment to IIS

- [Instructor] Again, the problem with doing manual deployment would be the fact that it's an error-prone operation. You might always do something wrong. And as I showed you, when we created the package, we have as well a Windows command file called website deploy.cmd. This one comes together with a readme file, so if you read that file you will see what parameters it requires for you in order to be able to run it. So let's see how it can run the application. So first of all, we need to launch Command Prompt and we need to launch it in administrator mode. So I would say run as administrator. And after that is up and running, I can go now to the same folder and I would say cd Deploy and then cd WebPackage and I can run the website deploy. Website deploy command file and set a parameter called slash T. T, it means test, or a what if. It will tell me what will happen if I want to run this without making any changes to my machine. So it tells me that it adds all those files, it does all…

Contents