BACode
BACode

Reputation: 81

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,

Upvotes: 0

Views: 823

Answers (2)

BACode
BACode

Reputation: 81

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.

Upvotes: 2

Jason Pan
Jason Pan

Reputation: 21883

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

Upvotes: 0

Related Questions