Squarespace::Sync
Sync files to and from a Squarespace Developer site over SFTP.
Installation
Add this line to your application's Gemfile:
gem 'squarespace-sync'
And then execute:
$ bundle
Or install it yourself as:
$ gem install squarespace-sync
Usage
Setup the configuration YAML file for your Squarespace Developer account SFTP settings:
$ squarespace setup
Update squarespace.yaml
with your account settings, and then you can run either of these commands:
Pull all files or a single file from Squarespace. Warns if there are conflicts
$ squarespace pull
$ squarespace pull template.conf
Push all files or a single file to Squarespace, overwriting existing
$ squarespace push
$ squarespace push template.conf
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request