inxilpro / node-app-root-path

Determine the root path to your project
MIT License
605 stars 29 forks source link

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

Open sakiv opened 7 years ago

sakiv commented 7 years ago

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)
peterjgrainger commented 3 years ago

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

sakiv commented 3 years ago

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

Nope. I moved to AWS.

inxilpro commented 3 years ago

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.