<commit_before># Deploy your website to S3

[![Build Status](https://travis-ci.org/laurilehmijoki/s3_website.png?branch=master)](https://travis-ci.org/laurilehmijoki/s3_website)
[![Gem Version](https://fury-badge.herokuapp.com/rb/s3_website.png)](http://badge.fury.io/rb/s3_website)

## What `s3_website` can do for you

* Create and configure an S3 website for you
* Upload your static website to AWS S3
* Help you use AWS Cloudfront to distribute your website
* Improve page speed with HTTP cache control and gzipping
* Set HTTP redirects for your website
* (for other features, see the documentation below)

`s3_website` automatically supports [Jekyll](http://jekyllrb.com) and
[Nanoc](http://nanoc.ws) by recognising their output directories (*_site* for
Jekyll and *public/output* for Nanoc). If your website resides in some other
directory, you can point the directory to `s3_website` with a parameter. See
`s3_website help push` for more info.

## Install

    gem install s3_website

## Usage

Here's how you can get started:

* In [AWS IAM](console.aws.amazon.com/iam), create API credentials that have sufficient permissions to S3
* Go to your website directory
* Run `s3_website cfg create`. This generates a configuration file called `s3_website.yml`.
* Put your AWS credentials and the S3 bucket name into the file
* Run `s3_website cfg apply`. This will configure your bucket to function as an
  S3 website. If the bucket does not exist, the command will create it for you.
* Run `s3_website push` to push your website to S3. Congratulations! You are live.

### Using environment variables
<commit_msg>Fix IAM link<commit_after># Deploy your website to S3

[![Build Status](https://travis-ci.org/laurilehmijoki/s3_website.png?branch=master)](https://travis-ci.org/laurilehmijoki/s3_website)
[![Gem Version](https://fury-badge.herokuapp.com/rb/s3_website.png)](http://badge.fury.io/rb/s3_website)

## What `s3_website` can do for you

* Create and configure an S3 website for you
* Upload your static website to AWS S3
* Help you use AWS Cloudfront to distribute your website
* Improve page speed with HTTP cache control and gzipping
* Set HTTP redirects for your website
* (for other features, see the documentation below)

`s3_website` automatically supports [Jekyll](http://jekyllrb.com) and
[Nanoc](http://nanoc.ws) by recognising their output directories (*_site* for
Jekyll and *public/output* for Nanoc). If your website resides in some other
directory, you can point the directory to `s3_website` with a parameter. See
`s3_website help push` for more info.

## Install

    gem install s3_website

## Usage

Here's how you can get started:

* In [AWS IAM](https://console.aws.amazon.com/iam), create API credentials that have sufficient permissions to S3
* Go to your website directory
* Run `s3_website cfg create`. This generates a configuration file called `s3_website.yml`.
* Put your AWS credentials and the S3 bucket name into the file
* Run `s3_website cfg apply`. This will configure your bucket to function as an
  S3 website. If the bucket does not exist, the command will create it for you.
* Run `s3_website push` to push your website to S3. Congratulations! You are live.

### Using environment variables

{'fraction_non_alphanumeric': 0.08922506946588453, 'fraction_numerical': 0.01234949058351343, 'mean_word_length': 4.714285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3239494', 'n_tokens_mistral': 1012, 'n_tokens_neox': 965, 'n_words': 402}