Can’t deploy Laravel php app to azure via GitHub

When trying to connect a private GitHub repo containing a Laravel app to an azure “Web app + postgres” on the php stack I am getting this error:

“The app ‘example’ is setup with stack ‘php’ which is currently not supported in Deployment Center via GitHub Actions.”

However various guides im following seem to not have this problem.
such as this one Deploy Laravel on Azure Web App

Anyone have any pointers as to what could be going on?

Thanks,

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

simple fix: select “App Service Build Service” as the Build provider. It’s hidden in the UI so you need to dig around for it as GitHub Actions is not currently supported.

Method 2

I also encountered this problem before, so I don’t recommend you to use github for continuous deployment of php projects for the time being.

Solutions and reference documents:

  1. I recommend using localgit to publish your project.
    [Official document] Push to Azure from Git
  2. Hosting a Laravel Application on Azure Web App


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x