gpt4 book ai didi

azure - 如何防止 Azure Linux 应用服务上的启动命令在发布时被覆盖?

转载 作者:行者123 更新时间:2023-12-02 07:22:56 25 4
gpt4 key购买 nike

我有一个 .net core 应用程序托管在运行 Linux 的 Azure 应用服务上。在遇到找不到 libgdiplus 的问题后,我遇到了使用 apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev && dotnet YourWebSite.dll 作为启动的解决方案Azure 中的命令。不幸的是,每当我推送代码时,该命令都会被默认的 dotnet YourWebSite.dll 覆盖。我查看了 Visual Studio 中的发布设置,但找不到任何与启动命令相关的内容。

最佳答案

我认为您无法更改 Visual Studio 的启动命令。但您可以在 Azure 门户中更改启动命令。

转到您的应用服务,转到配置

enter image description here

在这里您可以更改启动命令。

关于azure - 如何防止 Azure Linux 应用服务上的启动命令在发布时被覆盖?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61796491/

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