我已将应用程序部署到 Azure,但当我访问 mysite.azurewebsites.net 时,我被告知“您的 Web 应用程序正在运行并等待您的内容”
它是 B1 层上的 WebAssembly Blazor 应用程序,带有通过 Github Actions 部署的 Linux 盒子。它在 Windows 应用服务上运行得很好,但我删除了它并使用 Linux 重新创建以节省一些钱。
部署似乎已成功:
"id": [A PROPER GUID],
"status": 4,
"status_text": "",
"author_email": "N/A",
"author": "N/A",
"deployer": "GITHUB_ZIP_DEPLOY",
"message": "{\"type\":\"deployment\",\"sha\":\[A PROPER SHA],\"repoName\":\"emersonp/MyApp\",\"slotName\":\"Production\",\"commitMessage\":\"Roadmap!\"}",
"progress": "",
"received_time": "2022-10-14T18:41:31.9234067Z",
"start_time": "2022-10-14T18:41:33.2864838Z",
"end_time": "2022-10-14T18:41:42.5335373Z",
"last_success_end_time": "2022-10-14T18:41:42.5335373Z",
"complete": true,
"active": true,
"is_temp": false,
"is_readonly": true,
"url": "https://myapp.scm.azurewebsites.net/api/deployments/[GUID]",
"log_url": "https://myapp.scm.azurewebsites.net/api/deployments/[GUID]/log",
"site_name": "myapp",
"build_summary": {
"errors": [],
"warnings": []
}```
[![Deployment Center shows fine][1]][1]
[1]: /image/Lws4B.png
最佳答案
来 self 们关于 Q&A 的讨论线程,正如 JasonPan-MSFT 提到的:
"According to official documentation, deploying Blazor WebAssembly projects on Azure Web App Linux is currently not supported."
关于linux - WebAssembly Blazor 到 Azure Linux 部署 : "Your web app is running and waiting for your content",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74073680/