Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
581 views
in Technique[技术] by (71.8m points)

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

I'm trying to create Web App which is just having a Static HTML.

(我正在尝试创建仅具有静态HTML的Web App。)

I'm following this link https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-html .

(我正在关注此链接https://docs.microsoft.com/zh-cn/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" .

(收到错误-“无法自动检测到应用程序的运行时堆栈”。)

  ask by Murugesh translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try to manually include a web.config file and/or select the stack on General Settings:

(尝试手动包含web.config文件和/或在“常规设置”上选择堆栈:)

在此处输入图片说明

If you have no backend, the best option to host a static site is through Azure Storage:

(如果没有后端,则托管静态站点的最佳选择是通过Azure存储:)

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website

(https://docs.microsoft.com/zh-CN/azure/storage/blobs/storage-blob-static-website)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...