From c4d166d4187d769b07f7b8551b7ac1bf7c0421fb Mon Sep 17 00:00:00 2001 From: thienqb123456 Date: Tue, 4 Mar 2025 09:47:28 +0700 Subject: [PATCH] fix9 --- roles/deploy-be-portal/tasks/switch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/deploy-be-portal/tasks/switch.yml b/roles/deploy-be-portal/tasks/switch.yml index f17ef58..573bdb7 100644 --- a/roles/deploy-be-portal/tasks/switch.yml +++ b/roles/deploy-be-portal/tasks/switch.yml @@ -7,8 +7,8 @@ win_shell: | Import-Module WebAdministration Add-WebConfigurationProperty -pspath "MACHINE/WEBROOT/APPHOST/{{ iis_site_name }}" ` - -filter "system.webServer/aspNetCore/environmentVariables" 1 - -name "." 1 + -filter "system.webServer/aspNetCore/environmentVariables" ` + -name "." ` -value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"} # - name: Restart IIS site to apply changes