From 46b3d6a0f1b33e3e4da2ee48df66f50474ac28c4 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Thu, 26 Sep 2024 11:50:00 -0600 Subject: [PATCH] Fix hook for App Service (#1993) --- azure.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/azure.yaml b/azure.yaml index 6a999fd140..685789c41d 100644 --- a/azure.yaml +++ b/azure.yaml @@ -9,8 +9,23 @@ services: language: py # Please check docs/azure_container_apps.md for more information on how to deploy to Azure Container Apps # host: containerapp + # docker: + # remoteBuild: true host: appservice hooks: + # This hook is called when App Service is the host + prepackage: + windows: + shell: pwsh + run: cd ../frontend;npm install;npm run build + interactive: false + continueOnError: false + posix: + shell: sh + run: cd ../frontend;npm install;npm run build + interactive: false + continueOnError: false + # This hook is called when Azure Container Apps is the host prebuild: windows: shell: pwsh