Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (17 sloc) 1.44 KB

Static Sync


This extension is for a scenario where you want to use Radiant CMS but the web host does not have Ruby and only allows FTP access.

StaticSync creates a YAML file of MD5 Checksums of all of your files and uploads it along with all of your other files to the configured FTP account. The next time you sync, StaticSync compares checksums of the current filesystem with the remote cache of checksums and uploads, creates directories, or removes files accordingly, so only changed files are affected.

I created this because I didn't need the overhead of Git or something else to track versioning of the files to be uploaded. I was using the Radiant snapshot extension, git, rsync, and to take care of this and now I can do it all with just one rake task.


git submodule add git:// vendor/extensions/static_sync


Create a ftp.yml file in your 'config' directory similar to the following:

:user: myuser
:password: sup3rs3kr3t!
:root: /public_html

Run 'rake static:build' to build the static site and 'rake static:sync' to sync the static site with the remote FTP account. A 'rake static:build_and_sync' task is available to take care of both in one go.


The Radiant page to static file code is from jaknowlden's electrostatic extension: