#What Is This?# Static Base is a minimal static site framework built on top of Jekyll. It's got a bunch of development niceties baked right in for extra goodness.
##Niceties you say? Yup - things like:##
##Getting Started:##
$ git clone https://github.com/we-are-altitude/static-base.git
$ bundle install
##Launch A Local Server:##
$ guard
##Build your site locally:##
jekyll build --config _config.yml,_config-local.yml
##Deploying to Amazon S3:##
Like any other Jekyll based blog or site, publishing to Amazon S3 is fast, easy and often free. To build your static site, ready for deployment to S3 simply run:
$ jekyll build --config _config.yml,_config-production.yml
This will create a new public folder in the root with your minified and fingerprinted assets. Drop the contents of this folder in your Amazon S3 bucket of choice and enable static website hosting.
Of course you could go a step further and use a something like the s3_wesbite gem to easily push and update your site from the command line.
Boosh!
##Deploying to Heroku:##
Static Base is preconfigured to make deployments to Heroku simple. While Amazon S3 is great for 99% of static sites, if you need SSL support Heroku may be much cheaper / more robust.
Before you can push your static site however you'll need to do two things:
Enable the Heroku Labs feature user-env-compile:
$ heroku labs:enable user-env-compile -a myapp
Create a Heroku environment config variable ('staging' and 'production' supported):
$ heroku config:set ENV=production
That's it. When you push your changes to your Heroku app your assets will be built, minified and fingerprinted and Puma server will be started.
##Follow us for more updates: @twanlass / @dev_vine / @WeAreAltitude