Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon 호스트를 테스트 할 수 있습니까?


호스트를 테스트 할 수 있습니까?


예, 특히 Azure 함수에서 전체 앱을 재배치하지 않고`host.json` 파일의 변경 사항을 테스트 할 수 있습니다. 응용 프로그램 설정을 사용하여 특정`host.json '설정을 무시할 수 있습니다. 이를 통해`host.json` 파일 자체를 변경하지 않고 특정 환경에 대한 설정을 수정하거나 구성 할 수 있습니다.

예를 들어, 응용 프로그램 Insights 샘플링을 로컬로 비활성화하려면` "azureFunctionsJobHost__Logging __SamplingSettings__isenabled"와 같은 응용 프로그램 설정을 추가 할 수 있습니다. 이런 식으로, 생산 환경에 영향을 미치거나 앱을 재배치하지 않고 로컬로 변경 사항을 테스트 할 수 있습니다 [1] [2] [5].

그러나`host.json` 파일에서 직접 변경 사항을 테스트 해야하는 경우 일반적으로 프로덕션 환경에서 이러한 변경 사항이 적용되는 것을 확인하려면 앱을 재배치해야합니다. 그러나 응용 프로그램 설정을 사용하면 재배치없이 다른 구성을 테스트하는 유연한 방법이 제공됩니다.

인용 :
[1] https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json
[2] https://docs.azure.cn/en-us/azure-functions/functions-app-settings
[3] https://stackoverflow.com/questions/66936480/what-should-i-us-to-host-a-public-public-public-pile-sith without-redeplo
[4] https://answers.netlify.com/t/any-way-to-update-a-json-file-on-your-site-without--redeploy-the-entire-site/44950
[5] https://dev.to/massimobonanni/azure-ftips-override-the-hostjson-settings-21mi
[6] https://learn.microsoft.com/en-us/azure/logic-apps/edit-app-settings-host-settings
[7] https://github.com/azure/azure-functions-host/issues/3718
[8] https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring
[9] https://firebase.google.com/docs/hosting/test-preview-deploy
[10] https://github.com/azure/azure-functions/issues/383