我使用WebDeploy 3.0和清單文件,其中包含contentPath
和runCommand
。WebDeploy 3.0 RunCommand通過WebDeploy代理執行得太快
<siteManifest>
<contentPath path="C:\Test\Path" />
<runCommand path="echo hello" />
</siteManifest>
我遇到,之前contentPath
提供商同步的文件(僅目錄)的runCommand
正在執行的問題 - 只有當通過代理從遠程計算機上執行。
以下是輸出時通過WebDeploy直接執行:
Info: Using ID 'xxx' for connections to the remote server.
Info: Adding siteManifest (siteManifest).
Info: Adding virtual path (C:\Test\Path)
Info: Updating runCommand (echo hello).
Info: hello
Info: The process 'C:\Windows\system32\cmd.exe' (command line '') exited with code '0x0'.
Info: Using ID 'xxx' for connections to the remote server.
Info: Adding file (C:\Test\Path\File)
不知道如何停止RunCommand
之前發生的事情:當通過WebDeploy代理執行
Info: Using ID 'xxx' for connections to the remote server.
Info: Adding siteManifest (siteManifest).
Info: Adding virtual path (C:\Test\Path)
Info: Adding file (C:\Test\Path\File)
Info: Updating runCommand (echo hello).
Info: hello
Info: The process 'C:\Windows\system32\cmd.exe' (command line '') exited with code '0x0'.
以下是輸出contentPath
使用WebDeploy代理時?
您能澄清一下「web部署代理」嗎?你是指MSDeploy代理服務(需要管理員用戶)還是Web管理服務(msdeploy.axd,不需要管理員用戶)? (另外,嘿邁克!) –
我的意思是我相信MSDeploy代理服務(嗨Rich!)。 – TheCodeKing