当运行Web部署到特定的IIS站点时,我收到以下错误:
Error: The synchronization is being stopped because the maximum number of sync passes '5' has been exceeded even though all the changes could not be applied. This could occur if there are external changes being made to the destination.
At C:\Code\.....\deploy.ps1:185 char:10
+ & <<<< ($appDeployCmd) $type /M:$url /U:$user /P:$pass /A:Basic -allowUntrusted -useCheckSum
+ CategoryInfo : NotSpecified: (Error: The sync...he destination.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Run Code Online (Sandbox Code Playgroud)
Web Deploy在此环境中针对其他IIS站点正常工作,文件同步也正常工作.我以前能够使用Web部署来部署此特定站点而不会出现问题.突然之间,这个问题开始发生,我不能再部署这个网站了.
我正在使用从msbuild构建的包进行基本站点部署.我不认为具体内容是如此重要,因为正如我所说,这一切都在以前工作,并且目前在同一服务器场上的其他站点上工作没有问题.
错误消息说:
"如果对目的地进行外部更改,可能会发生这种情况."
但我不确定如何追踪这一点,或者甚至是开始时的问题.我确保所有远程会话中的所有资源管理器窗口都已关闭.我已经尝试重新启动网站和应用程序池.我唯一没试过的是重启服务器,这是不可能的.
可能导致此Web部署失败的任何想法?
我正在尝试在 git 中模拟 svn:externals 。在项目“A”中,我需要将库“B”下拉到“A”的子文件夹中。A 和 B 都是单独的 git 存储库。我知道我可以通过子模块或子树合并来做到这一点。然而,让事情变得更加复杂的是,我需要将“B”的子文件夹拉到“A”中,而不是整个项目,因为它是一个我需要直接导入的Python模块,并且那里不能有根目录结构不然无法导入。
使用 svn:externals 可以很容易地做到这一点。对于 git 来说,这似乎很复杂,甚至是不可能的。
这是一个例子:
项目B:
-B
- src
__init__.py
- test
...
Run Code Online (Sandbox Code Playgroud)
项目A:
- A
- src
A.py (imports B)
- B (partial check of sub folder 'src' as name 'B')
__init__.py
- test
...
Run Code Online (Sandbox Code Playgroud)