Deploy with rsync

27/09/2016 - Category: Developer

Deploy for developers means that we upload the changes we have on our development server or local, to production (your hosting provider usually).

There are many ways to do this: ftp, scp, Git, Fabric, Envoy, rsync, etc. Today I want to show you the script I use on every web project to upload changes, based on rsync. For me it's the easier and safer method.

What I do is create two files in each project: deploy.sh and .rsignore. The first one I invoke every time I want to upload the changes to the production server, and the second one is where I add each file or directory I want to ignore when deploy.

.rsignore example file

The next deploy.sh example file is the script I use with my Raspberry Pi when I want to share a website with a client in a particular way to show my progress. I've tested in macOS, but should work with any Linux distribution.

José Cerrejón González

FreelanceFull time developer influenced by Apple, Linux, 80's Era and so on.Read more

Google Docs' Notes

Raspberry Pi

ODROID

Sponsors

I request your permission to obtain statistical data on its navigation on this website. If you continue to browse I consider you accept the use of cookies. This site is adapted to be compliant with the new law about General Data Protection Regulation. OK | More Information