Where is Files folder(which shows up in Azure Resources(App Services) in VS code extension) located in Kudu in App services? - S

the problem which I am facing is that, I can see files under Files folder of Azure Services(Linux serve

the problem which I am facing is that, I can see files under Files folder of Azure Services(Linux server) in Azure Resources in VS Code. It includes .env file, .gitignore and many more. I had added .env in gitignore but not sure why it got uploaded in the first place.

Files:

I tried deleting these files but unable to locate them.

I tried deleting everything under wwwroot, see below but I guess that did not helped much- removing files under wwwroot:

but the problem is it was never there and I still have no idea where it is stored exactly. Tried all the paths in bash

the problem which I am facing is that, I can see files under Files folder of Azure Services(Linux server) in Azure Resources in VS Code. It includes .env file, .gitignore and many more. I had added .env in gitignore but not sure why it got uploaded in the first place.

Files:

I tried deleting these files but unable to locate them.

I tried deleting everything under wwwroot, see below but I guess that did not helped much- removing files under wwwroot:

but the problem is it was never there and I still have no idea where it is stored exactly. Tried all the paths in bash

Share Improve this question edited Mar 7 at 6:47 Aslesha Kantamsetti 1,6482 gold badges3 silver badges9 bronze badges asked Mar 7 at 6:22 BubblesBubbles 113 bronze badges 3
  • Try running the rm /home/site/wwwroot/.env and /home/site/wwwroot/.gitignore to remove the .env and .gitignore files from the Kudu Console. – Dasari Kamali Commented Mar 7 at 6:46
  • You can also delete the .env and .gitignore files from Kudu by clicking on the wrong button like this. – Dasari Kamali Commented Mar 7 at 6:50
  • 1 @DasariKamali, yes looks like they were hidden file and after running those commands, the files finally got deleted. Thanks – Bubbles Commented Mar 7 at 7:36
Add a comment  | 

1 Answer 1

Reset to default 0

The Files folder you see in the Azure Resources view in the VS Code extension shows the contents of the /home/site/wwwroot directory on the Linux-based Azure App Service.

To delete the .env and .gitignore files, go to the App Service > Development Tools > Advanced Tools (Kudu) > Go.

Open the Debug console Bash and run the below commands.

rm /home/site/wwwroot/.env

rm /home/site/wwwroot/.gitignore

You can also delete the .env and .gitignore files from Kudu's File Manager under /hom/site/wwwroot by clicking on the wrong button as shown below.

```

https://<webappName>.scm.eastus-01.azurewebsites/newui/fileManager#

```

The .env and .gitignore files were deleted successfully.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744945248a4602572.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信