gpt4 book ai didi

Azure Web App 部署失败,无法读取未定义的属性 'updateStartupCommandAndRuntimeStack'

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

尝试将 dotnet core 5 应用程序从 Azure Devops 部署到 Azure Linux Web 应用程序。

构建工作正常,但部署步骤总是失败并显示此消息(给出了一些上下文):

2021-11-09T09:53:24.6172470Z Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
2021-11-09T09:53:24.6172897Z Copying file: 'web.config'
2021-11-09T09:53:24.6173193Z Finished successfully.
2021-11-09T09:53:24.6173482Z Running post deployment command(s)...
2021-11-09T09:53:24.6173804Z Triggering recycle (preview mode disabled).
2021-11-09T09:53:24.6174085Z Deployment successful.
2021-11-09T09:53:24.6174390Z Successfully deployed web package to App Service.
2021-11-09T09:53:24.6174934Z ##[debug]Deployment Failed with Error: TypeError: Cannot read property 'updateStartupCommandAndRuntimeStack' of undefined
2021-11-09T09:53:24.6175535Z ##[debug]task result: Failed
2021-11-09T09:53:24.6204375Z ##[error]TypeError: Cannot read property 'updateStartupCommandAndRuntimeStack' of undefined
2021-11-09T09:53:24.6213555Z ##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot read property 'updateStartupCommandAndRuntimeStack' of undefined
2021-11-09T09:53:24.6216011Z ##[debug]Processed: ##vso[task.complete result=Failed;]TypeError: Cannot read property 'updateStartupCommandAndRuntimeStack' of undefined
2021-11-09T09:53:24.6216735Z ##[debug]Azure_App_Service_Deploy_PackageArtifactAlias=_CPRCard Production Web
2021-11-09T09:53:24.6217280Z ##[debug]release.releaseId=223

我假设这与“运行时堆栈”或“启动命令”参数有关。 1 奇怪的是,“运行时堆栈”似乎是一个下拉列表,但没有可供选择的值。我尝试了这些的各种组合,空的和不同的值,但结果相同......

Parameters for task

最佳答案

我通过在我的 azure-pipelines.yml 文件中使用它解决了这个问题

RuntimeStack: 'DOTNETCORE|5.0'
StartupCommand: 'dotnet {PROJECT_NAME}.dll'

关于Azure Web App 部署失败,无法读取未定义的属性 'updateStartupCommandAndRuntimeStack',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69896255/

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