Project

shart

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Deploys static websites like Middleman to cloud storage providers like S3.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Shart

Shart is a DRY approach to deploying websites generated by Middleman, Jekyll, or other static websites to cloud service providers that support website hosting, like Amazon S3.

Installation

Install shart from RubyGems:

$ gem install shart

Usage

Create a Shartfile in the root of your project that looks like:

# A Middleman Shartfile.
source './build'
target 'your-aws-bucket-name', {
  :provider               =>  'AWS',
  :aws_secret_access_key  =>  'your AWS credentials',
  :aws_access_key_id      =>  'your AWS credentials'
}

When you're ready to publish your website, run:

$ shart

Don't forget to run middleman build before you shart if you're using Middleman.

After you successfully shart, be sure to read the blog post about hosting a website on S3 if you haven't already configured your S3 bucket to do so.

Supported targets

Shart has only been tested with Amazon S3 buckets.

In theory, you can shart into any storage provider that Fog supports.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request