[]
(http://travis-ci.org/laurilehmijoki/jekyll-s3)
Deploy your jekyll site to S3.
- Upload your site to AWS S3
- Help you use AWS Cloudfront to distribute your Jekyll blog
- Create the S3 bucket for you
gem install jekyll-s3
- Go to your jekyll site directory
- Run
jekyll-s3
. It generates a configuration file called_jekyll_s3.yml
that looks like that:
s3_id: YOUR_AWS_S3_ACCESS_KEY_ID s3_secret: YOUR_AWS_S3_SECRET_ACCESS_KEY s3_bucket: your.blog.bucket.com cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
- Edit it with your details.
- Hint: you can use ERB syntax in
_jekyll_s3.yml
. This is handy, if you want to store the AWS credentials as environmental variables.
- Run
jekyll-s3
. Done.
- Log into https://console.aws.amazon.com/s3/home
- Set the Index document to index.html in Bucket Properties > Website.
- Visit the website endpoint: (http://yourblog.s3-website...amazonaws.com)
It is easy to deliver your S3-based web site via Cloudfront, the CDN of Amazon.
- Go to https://console.aws.amazon.com/cloudfront/home
- Create a distribution and set the your Jekyll S3 bucket as the origin
- Add the
cloudfront_distribution_id: your-dist-id
setting into_jekyll_s3.yml
- Run
jekyll-s3
to deploy your site to S3 and invalidate the Cloudfront distribution
- Upload only new or changed files
- Support ERB syntax in
_jekyll_s3.yml
- Invalidate the Cloudfront distribution of the Jekyll S3 bucket.
Jekyll-s3 supports only S3 buckets that are in the US Standard region. If your
bucket is currently on some other region, you can set a non-existing
bucket in _jekyll_s3.yml and then run jekyll-s3
. Jekyll-s3 will then create
the bucket in the US Standard region.
- Install bundler and run
bundle install
- Run the integration tests by running
bundle exec cucumber
- Run the unit tests by running
bundle exec rspec spec/lib/*.rb
MIT
Copyright (c) 2011 VersaPay, Philippe Creux.
Contributors (in alphabetical order)
- Cory Kaufman-Schofield
- Chris Kelly
- Lauri Lehmijoki