This commit is contained in:
thienqb123456
2025-03-04 09:12:21 +07:00
parent 843c43228e
commit 147d55fc20
+1 -4
View File
@@ -44,10 +44,7 @@
- name: Set ASPNETCORE_ENVIRONMENT for IIS site if different - name: Set ASPNETCORE_ENVIRONMENT for IIS site if different
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" -name "." -value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"}
-filter "system.webServer/aspNetCore/environmentVariables" `
-name "." `
-value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"}
#Lấy đường dẫn vật lý của iis site #Lấy đường dẫn vật lý của iis site
- name: Get the physical path of the current IIS site - name: Get the physical path of the current IIS site