@Andrea Bisiach , Firstly, Apologies for the delay in responding here. I would need more information about your WebApp and subscription ID (which is PII) for a detailed investigation. I’ll follow-up with you privately on this.
Note: Please do not share PII data on the public forum.
Just to highlight,
After the code is pushed App Service will call Oryx to build the application if a deployment script wasn't provided.
if package.json
is discovered in the repo Oryx includes npm run build in the build script. is package.json in the root of the repo?
If no custom deployment script is provided, Oryx will run behind the scenes and perform the required steps to build and configure the application.
And, for the App settings
SCM_DO_BUILD_DURING_DEPLOYMENT
- if false, bypass automatic build.
And
ENABLE_ORYX_BUILD
- if true, use the Oryx build system instead of the legacy Kudu system
You may navigate Kudu and review the logs.
Go to the KuduLite newUI (https://<sitename>.scm.azurewebsites.net/newui).
https://<sitename>.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace.
And, checkout the logs to see more details. You can see how the files were extracted to a repository at /tmp/zipdeploy/extracted, and verify for “oryx build”.
You may also test this with a sample App - https://github.com/azureossd/Deployment-Oryx-Samples and download all the samples locally.
And, test deploy
az webapp deployment source config-zip --resource-group <ResourceGroup> --name <WebAppName> --src reactjs_no_modules.zip
Much appreciate your patience!