Skip to content

moredip/microstatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

<iframe src="//player.vimeo.com/video/84530116" width="500" height="375" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

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

About

generate static sites directly from a git commit and deploy them to an S3 bucket

Resources

License

Stars

Watchers

Forks

Packages

No packages published