【发布时间】:2019-06-11 17:00:04
【问题描述】:
我们在 Microsoft Azure 中创建了一个 Linux Web 应用程序。该应用程序是使用 React(html 和 Javascript)静态编写的。
我们将代码复制到 wwwroot 文件夹中,但应用程序只显示了 hostingstart.html,当我们尝试获取页面 index.html 时,出现以下错误:
Cannot GET /index.html
我们尝试在 GitHub (https://github.com/Azure-Samples/html-docs-hello-world) 中使用 Azure 示例,但错误是相同的。 网址是这样的:https://consoleadmin.azurewebsites.net/index.html
上周应用程序运行正常。
我们忘记做某事了吗?
【问题讨论】:
-
您能否发布 Azure 所看到的文件结构?
-
@ScottCraig 你是什么意思?在 / 下的 web 应用程序中,我们有:.mono、LogFiles、站点。站点下:部署、锁、wwwroot(包含 index.html)
-
尝试将hostingstart.html重命名为old_hostingstart.html。然后,重新启动网络应用程序。
-
@RickRainey 我试过但不起作用,总是显示hostingstart.html。 Azure 中的静态 Web 应用似乎发生了一些变化。
标签: reactjs azure azure-web-app-service