Changing the physical path of an IIS website on a remote machine via Powershell

后端 未结 3 504
慢半拍i
慢半拍i 2021-02-01 16:38

I\'m currently working on a deployment script that will take my site, export it from svn, remove any testing files etc in it, minify the javascript/css, copy the code to a remot

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 17:15

    This also works:

    PS IIS:\Sites> Set-ItemProperty IIS:\Sites\Staging `
                       -name physicalPath `
                       -value "C:\blah\Web"
    

    (Note the use of backticks for line continuations)

提交回复
热议问题