generate static sites directly from a git commit and deploy them to an S3 bucket
Ruby HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
templates
.gitignore
Gemfile
LICENSE
README.md
Rakefile
microstatic.gemspec

README.md

Microstatic

The microstatic gem turns generating your static site and deploying it to S3 into a one-liner. There's a blog post with more details on the what and the why.

Microstatic does two things. Firstly it provides a command-line tool that makes it ridiculously simple to create a new microsite. Secondly it provides a rake task that makes it ridiculously simple to push new content to the microsite.

Creating a new microsite

microstatic setup and you’re done. This will create a new S3 bucket to hold your microsite, and then add a Route 53 entry to wire that S3 bucket up to a subdomain.

Deploying content to your microsite

rake deploy and you’re done. Microstatic ships with a rake task that will sync your local contents with the S3 bucket hosting your site.

Demo time!

Microstatic: setup a static subdomain microsite in < 30 seconds from Pete Hodgson on Vimeo.

Credits

The s3 deployment code was originally written by Giles Alexander

TODO

  • specify MICROSTATIC_SITE_NAME and cloud creds using dot file