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 |1 Answer
Reset to default 0The 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
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.env
and.gitignore
files from Kudu by clicking on the wrong button like this. – Dasari Kamali Commented Mar 7 at 6:50