node-app-root-path icon indicating copy to clipboard operation
node-app-root-path copied to clipboard

Library is not returning the application path for Webapp hosted on Azure.

Open sakiv opened this issue 9 years ago • 3 comments

Hosted a node application on Azure as Web App which is using app-root-path library to resolve the file paths. It is resolving to iisnode directory which is the node handler for IIS (D:\Program Files\iisnode) whereas application is hosted in different folder, i.e. D:\home\site\wwwroot.

Steps to reproduce -

  1. Create a web app on Azure using App Service template.
  2. Print application path using console.log(require('app-root-path').path)

sakiv avatar Jan 09 '17 17:01 sakiv

@sakiv did you ever find a work around with this?

peterjgrainger avatar Aug 10 '21 19:08 peterjgrainger

@sakiv did you ever find a work around with this?

Nope. I moved to AWS.

sakiv avatar Aug 11 '21 04:08 sakiv

I'm open to a PR for this one, but I don't use Windows or Azure so I don't have the foggiest idea how to approach it.

inxilpro avatar Sep 07 '21 16:09 inxilpro