I've been pushing from a local git repository to azure with no problems.
However, since adding some static content(a few png files) and pushing them to azure, I've noticed that they aren't getting pushed into the wwwroot directory on azure.
The files are being tracked by git and are landing in the git repo on the azure server. I was able to verify this by connecting by ftp and browsing folders.
However if I browse by ftp to the wwwroot directory, I can see that my new files have not been copied to this directory.
NOTE: I had two nice screenshots showing the files in one directory but not the other but I unfortunately can't post images on here as I'm a new user.
So to confirm:
The build action on these images is the same as other images which are appearing in the wwwroot directory (Content, Do not copy).
How can I get my new static resources to get copied into the wwwroot directory when pushing to azure?
The most common reason for this issue is that the files in the Project and not correctly marked as Content, causing them not to be deployed. When that's the case, you'd see the same behavior when deploying via WebDeploy.
If you see this behavior and your files are correctly marked as Content, then I'd love to see a repro, ideally in the form of a github repo that I can try pushing myself to Azure.
Build solution before commit to git to fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With