Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is WEBSITES_ENABLE_APP_CACHE=true compatible GITHUB ACTION DEPLOYMENT ? (Linux app service) #264

Open
nklido opened this issue Feb 6, 2023 · 1 comment

Comments

@nklido
Copy link

nklido commented Feb 6, 2023

I have setup github actions for deployment of a laravel app in linux app service

image

When the WEBSITES_ENABLE_APP_CACHE is set true, the deployment seems to work as expected

Command: bash deploy.sh

Handling Basic Web Site deployment.

Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'

Ignoring: .deployment
Copying file: '.gitattributes'
Copying file: '.gitignore'
Copying file: '.gitmodules'
Copying file: 'Readme.md'
Copying file: 'artisan'
Copying file: 'composer.json'
Copying file: 'composer.lock'
Ignoring: deploy.sh
...

But then when I go to .scm.azurewebsites.net/webssh/host under home/site/wwwroot
I see only the default hostingstart.html

image

If I disable the WEBSITES_ENABLE_APP_CACHE, then i can see all the project files under home/site/wwwroot

Is there a way to make WEBSITES_ENABLE_APP_CACHE work with github actions or must I use a different option like App Service Build Service.?

@colincmac
Copy link

colincmac commented Feb 13, 2023

@nklido I'll point out that WEBSITES_ENABLE_APP_CACHE=true is not compatible with "Run from Package" zip deploy (aka Run from Package). Both options copy files to a read only volume share and mount it to /home/site/wwwroot. I hope this helps a little, as I haven't researched the Github action myself. It's been a while since I used it with app service, but I feel like it can use other deploy methods.

references:
https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package#troubleshooting
https://github.com/Azure-App-Service/KuduLite/wiki/App-Cache#things-to-consider

** Correcting this. I meant WEBSITES_ENABLE_APP_CACHE isn't compatible with WEBSITE_RUN_FROM_PACKAGE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants