gpt4 book ai didi

azure - Azure 虚拟机规模集 (VMSS) 上的应用程序代码更新

转载 作者:行者123 更新时间:2023-12-03 03:47:20 26 4
gpt4 key购买 nike

目前,我们在 Linux 虚拟机上托管五个网站。这些网站位于各自的目录中,并由 Nginx 托管。 SSL 在 Azure 应用程序网关处终止,该网关将流量发送到 VM。如果在远程存储库中更新文件,则本地副本将由 cron 任务更新,该任务是一个运行 git pull 和几行附加命令的简单 Bash 脚本。并非所有五个网站都需要同时更新。我们创建了 VM 镜像并配置了 VMSS 设置。将代码部署到 VMSS 的最简单或标准方法是什么?由于客户的要求,代码每次还需要进行一些手动更改。

最佳答案

查看 Azure Durable Functions作为活跃的脚本部署管理器。

您可以将持久功能配置为通过cron计划触发,然后它可以编排一系列任务,监视来自部署目标的响应以获得可接受的响应在继续每个步骤之前,甚至等待用户输入继续之前。

通过使用 C#/JavaScript/Python/PowerShell 中的任何一种来编写复杂的工作流程,您仅受您自己将手动流程转换为脚本流程的能力的限制。

Azure Functions is just one option of many, it really comes down to the complexity of your workflow and the individual tasks. Octopus Deploy is a common product used to automate Azure application deployments and may have templates that match your current process, I go straight to Durable Functions when I find it too hard to configure complex steps that involve waiting for specific responses from targets before proceeding to the next step, and I want to use C# to evaluate those responses or perhaps reuse some of my application logic as part of the workflow.

关于azure - Azure 虚拟机规模集 (VMSS) 上的应用程序代码更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68610975/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com