Jekyll Auto-S3 is a simple Jekyll plugin that automatically uploads your Jekyll site to Amazon S3. Pair with jekyll build --watch
or jekyll serve --watch
for optimal results.
- Make sure you've got the requirements:
-
s3cmd for syncing with S3: install and configure
-
Crochet for hooking into Jekyll:
gem install crochet
-
Copy auto-s3.rb into your Jekyll project's
_plugins/
directory. (If the directory doesn't exist yet, create it.) -
Add the following lines to your
_config.yml
:s3: bucket: s3://your-bucket-name
auto-s3.rb will sync your built-site directory (typically _site/
) with the root folder of the bucket you specify in _config.yml
every time Jekyll processes/auto-regenerates your site.
Note: auto-s3.rb will not sync with S3 if you've passed Jekyll the --drafts
flag. That's on purpose.
Tested with Jekyll 1.0.