Azure / webapps-deploy

Enable GitHub developers to deploy to Azure WebApps using GitHub Actions
MIT License
265 stars 192 forks source link

Case sensitivity issue with Web.config file on a Linux based runner. #366

Open ssshake opened 11 months ago

ssshake commented 11 months ago

We have a .net application which we auto deploy to Azure using github actions and this package.

We recently migrated from a windows github actions runner to linux and this seemed to have caused our Web.config file to not be copied to our azure server.

On the Azure server, the Web.config file is the default file. It does not contain any custom attributes such as our headers and file size limits.

Renaming the file from Web.config to web.config in our repo and redeploying corrected this issue.

It looks like this was not an issue on the windows runner because windows doesn't care about case sensitivity. Converting this to a Linux runner introduced the issue because linux does care about case sensitivity.

One thing I find particularly puzzling is that the file which gets deployed to the server is uppercase Web.config, not lowercase like the source file.

I skimmed the code of this repo and I don't see anything explicitly mentioning Web/web.config. So not sure what's going on here.

sgollapudi77 commented 11 months ago

Hi @ssshake , we use very similar to the kudu for deploying our apps internally. As you can see in these examples dotnet Config , node config, we are checking for web.config file. Since windows is case-insensitive, you wouldn't have encountered this error, but in Linux this is a problem. Please let us know if there is any place you got confused by the documentation, we can update it.

github-actions[bot] commented 11 months ago

This issue is idle because it has been open for 14 days with no activity.