Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

git push deployment with NodeJs/NPM project ignores files on sync #3197

Closed
MarioPerezEsteso opened this issue Aug 11, 2020 · 2 comments
Closed

Comments

@MarioPerezEsteso
Copy link

MarioPerezEsteso commented Aug 11, 2020

When doing a git push in order to deploy an application, Kudu doesn't sync some files in node_modules because their creation date is always 26th october 1985. The git push is made to the folder site/repository and the sync is made to site/wwwroot, but as the timestamp of some files in the Node dependencies doesn't change, they are not copied.

Repro steps.

  1. git push to the folder site/repository
  2. npm install --production inside site/repository. It installs the dependencies and some of the files have creation date: 26th october 1985.
  3. Kudu copies the modified files from site/repository to site/wwwroot. As Kudu looks for the files that have different timestamp, it doesn't copy some of them even when they have different content.

The log/error given by the failure.

There aren't errors. Kudu just ignores the files on the sync between site/repository and site/wwwroot.

System and versions

  • Web Application using Windows.
  • Node 12.15.0
  • NPM 6.13.4

This issue is similar to this one, but doing a git push instead of a ZIP deployment.

Related npm issue.

@suwatch
Copy link
Member

suwatch commented Aug 11, 2020

Below is the current copying implementation. Please file gissue to KuduSync.NET to allow CopyAlways option. You will need to provide custom deployment as a workaround.

https://github.com/projectkudu/KuduSync.NET/blob/master/KuduSync.NET/KuduSync.cs#L193

@jvano
Copy link
Member

jvano commented Apr 29, 2024

Hi

If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

This way we can better track and assist you on this case

Thanks,

Joaquin Vano
Azure App Service

@jvano jvano closed this as completed Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants