litehook

litehook

Static hosting for github and jekyll

What it does

  • Uses a Ruby / Sinatra server to receive web hook posts from GitHub
  • Pulls and generates Jekyll or static sites with git / Jekyll
  • Pushes content to S3 bucket with s3cmd

TODO

  • install script
  • automatically configure buckets
  • finish email setup

Bucket configuration

  • enable website config, index.html, 404.html
  • add the following bucket policy
{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "PublicReadForGetBucketObjects",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::[bucketname]/*"
        }
    ]
}