Share via


Accessing the root directory of an Azure web app

Question

Friday, March 29, 2019 7:03 AM

I using spring-boot and Java JRE 1.8 to for an Azure web app with Linux environment. When I am running locally on my windows machine, I use "user.dir" to reference the root directory of my application (i.e. the src folder) but that same fails on Azure web-app. So can anyone guide me on how to access the root directory of my Linux based azure web app?

All replies (1)

Saturday, March 30, 2019 4:54 AM

Hi Tanay,

Can you take a look at this thread?  The issue appears similar.

trying using the path D:\home\site\wwwroot to refer to your app's root directory. You can learn more about Azure's file structure here.