I'm developing some websites, using serverside blog and CMS solutions.
I love to keep working on planes and such, so as of now, I've been running copies of these sites locally on my laptop.
I've checked all the files into GIT, and when I do changes to the files, I commit and push them to the test server.
If I also make changes to the CMS/blog through the web interface, I need to do a mysqldump locally and restore on the server.
(So far I haven't tried the git package functionality in Sublime. I'm a little new to git, so I'm getting to know it on the command line first.)
This setup works, but I'm playing with the idea of a file sync setup that lets me edit my files locally, but as soon as I'm online, it syncs my files to the server(s), sort of like how Dropbox works (transparent reconnect and background syncing).
If I still have to trigger sync manually, typing "git push" is just as simple ...
Any recommendations on a better setup?
I've been reading some on various SFTP clients (for Mac), but many of them seems to get trouble if I'm offline. I just tried in Transmit 4 to mount the volume as a finder volume. If I then try to save while turning wifi off, I get I/O error ...
Maybe Sublime Text 2 has some packages that I should check out? (I guess the editor can trigger Transmit or other apps, but what happens if I'm offline when I do Cmd+S?)
I guess it should be possible to make some script that detect network availability, that is triggered by changes to a folder (I think launchd can detect those), but I'm not sure I'm able to make that a robust/fail tolerant solution ... What say you?