I use OS X for development and I want to push changes to dev server on every ⌘+S.
When I check out a different branch, I want the local folder to update accordingly.
So I figured I need an automatic, two-way sync solution.
My editor of choice is Sublime Text (which is awesome, you totally should check it out).
I began my quest with Sublime Text SFTP plugin by Will Bond but found it unstable and slow.
Then I attacked the problem with Panic Transmit.
It is stunningly beautiful. However, it didn't help me either.
Transmit offers two options:
- two-way sync between local and remote folder;
- mount SFTP to the filesystem.
Alas, its two-way sync is manual and has to be invoked by pressing a button.
(I could probably get around this by writing some clever AppleScript—but I don't know it.)
SFTP mounting is great—unfortunately, it has major disadvantages: file searching is predictably slow and there seems to be no way to tell Transmit that files have changed on server. You need to unmount and mount again to see the remote changes. This makes branches impossible to work with.
I'm really confused now and I don't feel like wasting a couple of hours on a wrong solution. I'm open to suggestions for a tool to improve my workflow.
Here's what I found so far. I'm not sure any of those can actually watch remote folder for changes.
- writing some AppleScript to sync Transmit both ways each ten seconds;
- using
rsync
and Folder Actions; - using
rsync
andFSEvent
; - using DoubleDown (open source);
- buying FolderWatch (commercial);
- doing something else.
Note that I'm looking for a solution that works out of the box. I don't want a tool that can't handle new/changed/deleted files or folders without fiddling with its source code.
Secure Shellfish
on iOS?