Setting environment variables for asp.net core when publishing on IIS
IIS > 選主機或是站台 > 配置編輯器
> 上方選 system.webServer 裡面的 aspNetCore
> 內容出現 environmentVariables 選右邊的 ... 就可以開出設定
P.S. 選主機是全域,而站台是By Site
不是全域了話他是寫在站台的Web.Config
所以重新佈署時如果蓋掉該檔就會失效

Setting environment variables for asp.net core when publishing on IIS
IIS > 選主機或是站台 > 配置編輯器
> 上方選 system.webServer 裡面的 aspNetCore
> 內容出現 environmentVariables 選右邊的 ... 就可以開出設定
P.S. 選主機是全域,而站台是By Site
不是全域了話他是寫在站台的Web.Config
所以重新佈署時如果蓋掉該檔就會失效