asp.net - 通过 Web 部署将更新发布到 Azure Web 应用程序,对流程和所需时间感到困惑

标签 asp.net visual-studio azure asp.net-core azure-web-app-service

这似乎是一个愚蠢的问题,但我一直在使用网络部署发布配置文件将更新部署到我采用的项目的开发站点。

这总是需要 15 分钟左右。

但是,我想测试一个更实际的示例,因此为了使应用程序离线,我按照以下说明进行操作:

https://learn.microsoft.com/en-us/previous-versions/aspnet/ee942158(v=vs.110)#how-to-automatically-take-an-app-offline-during-deployment

于是我又推送了一次更新,并不断刷新开发站点,果然,它显示正在 build 中,但只持续了大约 1 分钟,然后就恢复了。

然而,即使当我输入这个问题时,几乎 15 分钟后,Visual Studio 仍然在构建输出窗口中逐行发布更新。

有人可以帮助我了解 Visual Studio 中 Web 部署发布的生命周期吗?

最佳答案

根据您的描述,似乎是由于WebApp没有启用Always on所致。

By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time.

您可以尝试启用 Always on然后再试一次。

如果你想了解Web部署可以引用这个article .

关于asp.net - 通过 Web 部署将更新发布到 Azure Web 应用程序,对流程和所需时间感到困惑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53636677/

相关文章:

Azure SQL 数据仓库 DWU 与 Azure SQL DTU

asp.net - 在 ASP.NET 中使用嵌入式标准 HTML 表单

c# - 错误 :Index (zero based) must be greater than or equal to zero and less than the size of the argument list

asp.net - 如何将下拉列表添加为 gridview 项目

c++ - 为什么 MSCVRT 库会在链接时产生冲突?

azure - 如何防止在azure devops yaml中创建新分支的构建

node.js - 我的应用程序已成功部署在 Azure 中,但无法访问 URL

c# - ASP.NET FormsAuthentication - 要解密的数据长度无效

asp.net-mvc - 同时运行Web API和MVC项目

windows - 在不同凭据下运行时在 Visual Studio 的当前实例中打开文件