node-app-root-path
node-app-root-path copied to clipboard
Library is not returning the application path for Webapp hosted on Azure.
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 -
- Create a web app on Azure using App Service template.
- Print application path using
console.log(require('app-root-path').path)
@sakiv did you ever find a work around with this?
@sakiv did you ever find a work around with this?
Nope. I moved to AWS.
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.