Thanks for the sharing the Azure docs and the steps that you're referring to. Just to isolate the issue, kindly try the following steps:
If you haven’t done this already, Access the log stream - You can also inspect the log files in a browser at https://<app-name>.scm.azurewebsites.net/api/logs/docker
Also, review - http://sitename.scm.azurewebsites.net/deploymentlogs/
logs.
Just to highlight , App Service Linux uses Oryx to build/install packages for PHP by default. To understand how Oryx works go to our App Service Linux Deploy Oryx -
The PHP toolset is run when a composer.json file exists in the root of the repository.
Are you leveraging custom script?
Test the app locally in production mode.
Review -depending on your composer.json, different packages may be installed for production mode (require vs. require-dev (in your case))
Run your app in App Service in debug mode.
For Laravel, you can configure your app to output debug messages in production by setting the APP_DEBUG
app setting to true
on Azure Portal.
Ensure that the branch is not locked.
Since your Git repository is in main
branch, you may set the default deployment branch for your App Service app to main
and test.
Kindly let us know, we will follow-up with you further.