msdeploy回滚功能
正在使用 MSDeploy 技术开发针对不同环境的部署。只是想知道我们如何在批处理文件本身中出现错误时回滚特定部署。有内置命令吗?
一种方法是将当前站点打包到特定位置,然后在批处理文件中出现任何错误时部署该包。但不想遵循该步骤并寻找 MSDeploy 提供的任何替代方案
Am developing our deployment to different environment using MSDeploy technology. Just want to know how can we rollback particular deployment on ERROR in the batch file itself. Are there any builtin command?
One way can be to package the current site at a particular location and then deploy that package on any error in batch file. But don't want to follow that step and looking for any alternative that MSDeploy provides
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,也许这里发生的事情比您所说的要多,但在最简单的情况下,如果您使用 Visual Studio 构建部署包,它生成的批处理文件有一个命令行开关来执行“假设”部署。您只需使用“/t”执行批处理,它将模拟部署并报告任何错误(当然没有实际部署)。 msdeploy 的设置方式存在一些差异,因此也许您可以发布更多详细信息来说明您正在做什么?
Hmm, perhaps there is more going on here than you have stated, but in the simplest case if you build a deployment package using visual studio the batch file it generates has a command line switch to do a "whatif" deployment. You just execute the batch with a "/t" and it will simulate a deployment and report back any errors (without actually deploying of course). There is some variance in how msdeploy is setup so maybe you could post more detail into exactly what you are doing?