简体   繁体   English

Azure Service Fabric 重置

[英]Azure Service Fabric reset

I am using service fabric locally.我在本地使用服务结构。

If I stopped debug mode for a couple of mins or restart the computer and continued my work it redeploys the application again from scratch.如果我停止调试模式几分钟或重新启动计算机并继续我的工作,它会从头开始重新部署应用程序。

How to make it only deploy the changed libraries (which I think it what it should do in the first place)如何让它只部署更改的库(我认为它首先应该做什么)

There is the Application Debug Mode property you can use ( source ):您可以使用 Application Debug Mode 属性( 源代码):

Application Debug Modes应用程序调试模式

  1. Refresh Application This mode enables you to quickly change and debug your code and supports editing static web files while debugging.刷新应用程序 此模式使您可以快速更改和调试代码,并支持在调试时编辑静态 Web 文件。 This mode only works if your local development cluster is in [1-Node mode].此模式仅在您的本地开发集群处于 [1-Node 模式] 时才有效。 This is the default Application Debug Mode.这是默认的应用程序调试模式。
  2. Remove Application causes the application to be removed when the debug session ends. Remove Application 导致在调试会话结束时删除应用程序。
  3. Auto Upgrade The application continues to run when the debug session ends.自动升级 当调试会话结束时,应用程序继续运行。 The next debug session will treat the deployment as an upgrade.下一个调试会话会将部署视为升级。 The upgrade process preserves any data that you entered in a previous debug session.升级过程会保留您在之前的调试会话中输入的任何数据。
  4. Keep Application The application keeps running in the cluster when the debug session ends.保持应用程序在调试会话结束时,应用程序继续在集群中运行。 At the beginning of the next debug session, the application will be removed.在下一个调试会话开始时,应用程序将被删除。

I think you are looking for option 1 or 3.我认为您正在寻找选项 1 或 3。

You can set the property using the Service Fabric Application project properties.可以使用 Service Fabric 应用程序项目属性设置该属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM