开发者

How do I copy only files that have been modified to my server with BuildMaster?

开发者 https://www.devze.com 2023-03-30 02:12 出处:网络
I am trying to deploy one of my websites with BuildMaster and this particular site has thousands of files. When I need to deploy to my production server, sometimes only 1 or 2 files need to be changed

I am trying to deploy one of my websites with BuildMaster and this particular site has thousands of files. When I need to deploy to my production server, sometimes only 1 or 2 files need to be changed. Is there a way to set up my deployme开发者_Python百科nt plan so it only copies files to the server that have changed since the previous release?


You'll want to add a "Transfer Files Action" to your deployment plan, which by default will only transfers files that have been modified.

I should note that if you're creating a build artifact with thousands of files, you may want to first deploy it to the BuildMaster server, then use a "Transfer Files Action" so it only transfers the modified files. If you were to deploy the artifact directly on the remote server, it would transfer the whole artifact then unzip all 1000+ files.

Thanks for posting this, I'll add this to our FAQ.


rsync is probably the better way to achieve this:

rsync -a ./source/directory username@server:/destination/directory

This will only send the files that have been modified

0

精彩评论

暂无评论...
验证码 换一张
取 消