我正在将 React+Node 应用程序部署到 Azure 应用程序服务。构建阶段很好,但部署阶段失败,并显示
The job running on runner GitHub Actions 10 has exceeded the maximum execution time of 360 minutes.
日志显示
Package deployment using OneDeploy initiated.
,然后开始轮询并在 6 小时后超时
##[debug]setting affinity cookie ["ARRAffinity=f07aec79734d8bf10f3fd4121c637821b5012b69243d980eeadb0c647194e673;Path=/;HttpOnly;Secure;Domain=engrant-app.scm.azurewebsites.net","ARRAffinitySameSite=f07aec79734d8bf10f3fd4121c637821b5012b69243d980eeadb0c647194e673;Path=/;HttpOnly;SameSite=None;Secure;Domain=engrant-app.scm.azurewebsites.net"]
##[debug][POST] https://engrant-app.scm.azurewebsites.net/api/publish?async=true&deployer=GITHUB_ONE_DEPLOY&type=zip&message=%7B%22type%22%3A%22deployment%22%2C%22sha%22%3A%226c41ed25e1ac09c9b937aced42e0af8f031ef47f%22%2C%22repoName%22%3A%22uluhonolulu%2Fengrant-app%22%2C%22actor%22%3A%22uluhonolulu%22%2C%22slotName%22%3A%22Production%22%2C%22commitMessage%22%3A%22Vector%20search%20for%20islaidos%22%7D
##[debug]One Deploy response: {"statusCode":202,"statusMessage":"Accepted","headers":{"content-length":"0","date":"Sun, 15 Dec 2024 07:18:46 GMT","server":"Kestrel","location":"https://engrant-app.scm.azurewebsites.net:443/api/deployments/latest?deployer=OneDeploy&time=2024-12-15_07-18-46Z","scm-deployment-id":"d88280a8-0734-4be6-8547-8a954b286479","retryafter":"30"},"body":""}
##[debug]Polling for One Deploy URL: https://engrant-app.scm.azurewebsites.net:443/api/deployments/latest?deployer=OneDeploy&time=2024-12-15_07-18-46Z
如何解决?
通过将
WEBSITE_RUN_FROM_PACKAGE
设置为 1 来修复此问题,但如果有人可以向我解释为什么使用默认设置的标准部署会在 6 小时后超时,我仍然会很感激。