jsvine / jekyll-auto-s3

Automatically sync your Jekyll project to S3 on every (re)build.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Getting Started

  1. Make sure you've got the requirements:
  1. Copy auto-s3.rb into your Jekyll project's _plugins/ directory. (If the directory doesn't exist yet, create it.)

  2. Add the following lines to your _config.yml:

    s3: bucket: s3://your-bucket-name

Usage

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.

Compatibility

Tested with Jekyll 1.0.

About

Automatically sync your Jekyll project to S3 on every (re)build.


Languages

Language:Ruby 100.0%