karlfreeman / middleman-deploy

Deploy a middleman built site over rsync, ftp, stfp, or git (e.g. gh-pages on github).
MIT License
554 stars 124 forks source link

Adds an option to rsync deployment method to specify the full path to the rsync binary #116

Open kirichkov opened 8 years ago

kirichkov commented 8 years ago

This option is useful when deploying from Mac OS X. The latest Mac OS X (El Capitan) ships with a rsync binary from 2006.

My current use case is when deploying sites that have non-ASCII URLs (file names). When deploying from Mac OS X to a Linux server the --iconv=utf-8-mac,utf-8 rsync flag is required for properly naming the files on the server. This option, however, is present in rsync 3.0.0, while Mac OS X ships with 2.6.9. Thus I have to install rsync from homebrew and meddle with the PATH environment variable to point to the homebrew rsync. With this option I don't need to change the PATH environment variable but simply point to the version of rsync which I installed from homebrew.