Azure WebApp-无法自动检测您的应用程序的运行时堆栈 [英] Azure WebApp - Unable to auto-detect the runtime stack of your app
问题描述
我正在尝试创建仅具有静态HTML的Web App.我正在跟踪此链接 https ://docs.microsoft.com/zh-CN/azure/app-service/app-service-web-get-started-html .但是当我执行以下命令
I'm trying to create Web App which is just having a Static HTML. I'm following this link https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-html. But when I execute the following command
az webapp up --location westeurope --name.
az webapp up --location westeurope --name .
收到错误-无法自动检测到应用程序的运行时堆栈".
Got the error - " Could not auto-detect the runtime stack of your app" .
推荐答案
我尝试了以下操作,但是在az webapp up命令末尾添加了--html标志以绕过自动检测:
I tried the following, but added the --html flag at the end of the az webapp up command to bypass auto detection:
mkdir quickstart
cd quickstart
git clone https://github.com/Azure-Samples/html-docs-hello-world.git
cd html-docs-hello-world
az webapp up --location westeurope --name azurewebapptest123 --html
这将强制HTML.在命令帮助中,它暗示自动检测适用于多种语言,但不适用于静态HTML.
That forces HTML. In the help for the command it implies auto-detection works for a bunch of language, but not for static HTML.
这篇关于Azure WebApp-无法自动检测您的应用程序的运行时堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!