This commit is contained in:
thienqb123456
2025-03-04 09:47:28 +07:00
parent bf9ea21b47
commit c4d166d418
+2 -2
View File
@@ -7,8 +7,8 @@
win_shell: | win_shell: |
Import-Module WebAdministration Import-Module WebAdministration
Add-WebConfigurationProperty -pspath "MACHINE/WEBROOT/APPHOST/{{ iis_site_name }}" ` Add-WebConfigurationProperty -pspath "MACHINE/WEBROOT/APPHOST/{{ iis_site_name }}" `
-filter "system.webServer/aspNetCore/environmentVariables" 1 -filter "system.webServer/aspNetCore/environmentVariables" `
-name "." 1 -name "." `
-value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"} -value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"}
# - name: Restart IIS site to apply changes # - name: Restart IIS site to apply changes