升级服务结构应用程序 [英] Upgrade Service Fabric Application

查看:66
本文介绍了升级服务结构应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种仅将修改后的文件复制到Service Fabric的方法. 我有一个包含ASP的Service Fabric应用程序. Net 5应用程序作为服务.每当我在ASP中更改JavaScript文件时. Net 5服务,每次需要复制整个服务矩阵应用程序包.是否有一条命令仅允许复制修改后的文件?

Is there a way to copy only modified files to Service Fabric. I have a Service Fabric application containing an ASP. Net 5 application as service. Whenever am doing a change to a JavaScript file inside my ASP. Net 5 service, every time I need to copy the entire service fabric application package. Is there a command which allows to copy only the modified file?

推荐答案

实现此目标的最佳方法是使用差异打包和应用程序升级.请参阅此链接以获取更多信息: https://azure.microsoft.com/zh-CN/documentation/articles/service-fabric-application-upgrade-advanced/.差异打包允许您定义仅包含要升级的软件包部分的应用程序软件包.但是,它仅适用于应用程序包的组件,例如服务或代码包.您不能在文件级别创建diff包.因此,如果您只更改了代码包中的单个文件,则必须将该文件与属于该代码包的所有其他文件一起包括在内.您不能只包含已更改的单个文件.但是差异打包的好处是您只需要包含该单个代码包.您不需要提供其他服务的代码包,例如,假设它们没有被更改.

The best way to accomplish this is to use diff packaging and app upgrade. See this link for more info: https://azure.microsoft.com/en-us/documentation/articles/service-fabric-application-upgrade-advanced/. Diff packaging allows you to define an application package that only contains the package parts that you wish to upgrade. However, it only applies to a component of an application package, such as a Service or Code package for example. You can't create a diff package at the file level. So if you've only changed a single file in your code package, you must include that file along with every other file that belongs to the code package. You can't just include the single file that changed. But the benefit of diff packaging is that you'd only need to include that single code package. You wouldn't need to provide other Service's code packages, for example, assuming they haven't been changed.

这篇关于升级服务结构应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆