We're using TeamCity to automate MSBuild to use WebDeploy to push our application to our various servers.
我们正在使用TeamCity将MSBuild自动化,使用WebDeploy将我们的应用程序推到各种服务器上。
For the most part, we've got this working, and great. One snag, though: we've got a folder that holds uploads that we don't want to have deleted during the publication.
在很大程度上,我们已经完成了这项工作,而且非常棒。不过,有一个问题:我们有一个文件夹保存上传内容,我们不想在发布期间删除这些内容。
How do I tell WebDeploy, "I know that folder's not in the compiled application. Ignore it. Just leave it alone."
如何告诉WebDeploy,“我知道这个文件夹不在编译后的应用程序中。忽略它。只是别管它。”
1 个解决方案
#1
13
If you're using the dirPath, filePath, or contentPath providers, you can specify the DoNotDelete
rule to block deletions of files on the destination computer that do not exist on the source. The syntax to add to the command line would be -enableRule:DoNotDelete
. For more information, see the provider articles mentioned and Web Deploy Rules.
如果您使用的是dirPath、filePath或contentPath提供程序,您可以指定DoNotDelete规则来阻止源计算机上不存在的文件的删除。添加到命令行的语法是-enableRule:DoNotDelete。有关更多信息,请参阅所提到的提供者文章和Web部署规则。
#1
13
If you're using the dirPath, filePath, or contentPath providers, you can specify the DoNotDelete
rule to block deletions of files on the destination computer that do not exist on the source. The syntax to add to the command line would be -enableRule:DoNotDelete
. For more information, see the provider articles mentioned and Web Deploy Rules.
如果您使用的是dirPath、filePath或contentPath提供程序,您可以指定DoNotDelete规则来阻止源计算机上不存在的文件的删除。添加到命令行的语法是-enableRule:DoNotDelete。有关更多信息,请参阅所提到的提供者文章和Web部署规则。