gpt4 book ai didi

node.js - 尝试将站点部署到 Azure 时出现应用程序错误

转载 作者:行者123 更新时间:2023-12-02 06:37:48 26 4
gpt4 key购买 nike

尝试在 Azure 中部署简单站点时,部署后收到此错误消息:

:( Application ErrorIf you are the application administrator, you can access the diagnostic resources.

如何解决这个问题?

最佳答案

当您使用 CI/CD 部署应用程序时,请在部署任务中删除插槽名称并将包替换为应用程序文件。以下是示例:

来自:

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'hello-world-app-to-delete'
slot-name: 'production'
publish-profile: $
package: .

致:

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'hello-world-app-to-delete'
publish-profile: $
package: ./dist/hello-world-app

有关更多信息,请参阅此 GIT blog

要找出问题所在,您可以 enable diagnostics logs在 azure 应用程序服务的应用程序中。我们还可以使用 Azure Application Insights 监控我们的应用程序.

关于node.js - 尝试将站点部署到 Azure 时出现应用程序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70270676/

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