subugoe / metacheck

Automatically check metadata compliance for hybrid open access (OA).
http://subugoe.github.io/metacheck/
GNU Affero General Public License v3.0
8 stars 1 forks source link

use documented env var to detect production env #318

Open maxheld83 opened 3 years ago

maxheld83 commented 3 years ago

maybe currently blocked by https://github.com/Azure/azure-webjobs-sdk/issues/2121

maxheld83 commented 3 years ago

originally raised in #312

maxheld83 commented 3 years ago

tried this Sys.getenv("WEBSITE_SLOT_NAME") == "Production" but did not work.

maxheld83 commented 3 years ago

even though https://docs.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet