简体   繁体   English

在Azure门户中的哪里可以找到web.config?

[英]Where can I find the web.config in the Azure portal?

Every guide that I see say to do something with the web.config file in Azure. 我看到的每本指南都说要对Azure中的web.config文件进行某些操作。 However, no matter how much I Google, there is nowhere to be found the steps that I need to take to find the web.config file. 但是,无论我使用多少Google,都无法找到找到web.config文件所需执行的步骤。 Your help will be highly appreciated :) 非常感谢您的帮助:)

There are a few scenarios here. 这里有一些场景。 First: when you run on an App Service there is a web.config file. 首先:当你在一个应用程序服务运行存在 web.config文件。 As David Makagon said, it's not accessible through the portal. 正如David Makagon所说,无法通过门户进行访问。 By default, app services have Kudu available. 默认情况下,应用程序服务具有Kudu可用。 One of the things this gives you is something like a file explorer. 这给您带来的一件事就是文件浏览器。 To access Kudu for an App Service with URL https://someapp.azurewebsites.net , go to https://someapp.SCM.azurewebsites.net . 要使用URL https://someapp.azurewebsites.net访问Kudu以获得应用服务,请访问https://someapp.SCM.azurewebsites.net

Kudu在行动

A second thing you could do (which is part of Kudu) is use the App Service Editor. 您可以做的第二件事(属于Kudu)是使用App Service编辑器。 This is an online editor that looks very much like Visual Studio Code . 这是一个非常像Visual Studio Code的在线编辑器。 Go to https://someapp.scm.azurewebsites.net/dev . 转到https://someapp.scm.azurewebsites.net/dev

应用服务编辑器

The third thing: if you have any settings in your web.config that you want to manage without updating the configuration file, have a look at the Application Settings . 第三件事:如果您要在web.config中进行任何设置而无需更新配置文件即可进行管理,请查看“ 应用程序设置” Any setting that's in there overrides the setting with the same name in the web.config. 其中的任何设置都会覆盖 web.config中具有相同名称的设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM