Azure-functions-host: Make it easy to get function working directory and other context

Created on 23 Oct 2016  路  5Comments  路  Source: Azure/azure-functions-host

Today, getting environment information in managed functions (like the current directory) is very cumbersome. We need to investigate a way to make this more convenient.

improvement

All 5 comments

+1 on this. I had to use some really hacky workarounds in order to write code that works on both the CLI and on Azure. I ended up creating an environment variable SITE_PATH where I set to "." when running locally and site\wwwroot on Azure.

@lindydonna @christopheranderson I'm clearing the milestone on this so we can chat about this item on the next triage meeting.

Dup of #415?

Another customer asking for function name here.

Was this page helpful?
0 / 5 - 0 ratings