Azure WebApp - 无法自动检测应用程序的运行时堆栈 [英] Azure WebApp - Unable to auto-detect the runtime stack of your app

查看:11
本文介绍了Azure WebApp - 无法自动检测应用程序的运行时堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建仅具有静态 HTML 的 Web 应用程序.我正在关注此链接 https://docs.microsoft.com/en-us/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆