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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request