Can I automate creating a .NET web application in IIS?

后端 未结 9 2232
無奈伤痛
無奈伤痛 2020-12-30 13:52

I need to deploy a web application on several laptops (although it is a web application, it is intended to run via localhost only - thus the need to deploy on s

9条回答
  •  天命终不由人
    2020-12-30 14:35

    I can suggest you to take a look at this link if you are deploying on IIS 6 or at this one if it is IIS 7 (I could recommend Mike Volodarsky's blog for any information on IIS 7 in general).

    It should be quite simple for you to write some batch file to automate a site creation.

    Example:

    • IIS6 : iisweb /create C:\Rome "My Vacations" /d www.reskit.com /dontstart
    • IIS7 : %windir%\system32\inetsrv\AppCmd ADD SITE /name:MyNewSite /bindings:http/*:81: /physicalPath:c:\inetpub\mynewsite

提交回复
热议问题