What is the fastest way to upload code to the server?

I use filezilla to transfer thousands of files too slowly. Is there a faster way? How long will it take at the earliest?

Jun.28,2022

the simplest: git clone directly on the server
the most convenient: use deployment tools Capistrano, Deployer and other
the fastest: system control can use high-speed upload tool vagrant-unison


package upload, do not upload fragmented files, very slow.


package and upload to generate dist files, some of which are uploaded on the server. Don't upload all the dependencies of the entire project.


rsync command.


package upload


git is the fastest


git command line is faster, direct git pull,git push


rsync command


after local development IDE uses push, server-side automatic pull is the fastest.
I use Code Cloud as a code repository with a WebHooks that states: "Code Cloud WebHook function is to help users automatically call back a http address you set after push code. This is a general solution, users can write their own scripts (such as email, automatic deployment, etc.) according to different needs. ", that is, call the git pull command in this php file.


Server git clone is repackaged or rsync is locally packaged to the server.


Why can't ftp be compressed and uploaded and decompressed?


is still used to using ftp,git. I'm afraid to upload the problematic submission code


git is the fastest

.
Menu