Code Monkey home page Code Monkey logo

s3_website's Introduction

Deploy your website to S3

Build Status Gem Version

Please note that this project is not actively maintained. Consider using s3_website_revived instead.

What s3_website can do for you

  • Create and configure an S3 website for you
  • Upload your static website to AWS S3
  • Jekyll, Nanoc, and Middleman are automatically supported
  • 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)

Install

gem install s3_website

s3_website needs both Ruby and Java to run. (S3_website is partly written in Scala, hence the need for Java.)

Usage

Here's how you can get started:

  • Create API credentials that have sufficient permissions to S3. More info here.
  • 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.
  • At any later time when you would like to synchronise your local website with the S3 website, simply run s3_website push again. (It will calculate the difference, update the changed files, upload the new files and delete the obsolete files.)

Specifying the location of your website

S3_website will automatically discover websites in the _site and public/output directories.

If your website is not in either of those directories, you can point the location of your website in two ways:

  1. Add the line site: path-to-your-website into the s3_website.yml file
  2. Or, use the --site=path-to-your-site command-line argument

If you want to store the s3_website.yml file in a directory other than the project's root you can specify the directory like so: s3_website push --config-dir config.

Using standard AWS credentials

If you omit s3_id from your s3_website.yml, S3_website will fall back to reading from the default AWS SDK locations. For instance, if you've used aws configure to set up credentials in ~/.aws/credentials, S3_website can use these.

Using an AWS profile or a profile that assumes a role

If you omit s3_id, s3_secret, and session_token you can specify an AWS credentials profile to use via the profile configuration variable, eg:

profile: name_of_aws_profile

In addition, if you want this profile to assume a role before executing against S3, use the profile_assume_role_arn variable, eg:

profile_assume_role_arn: arn_of_role_to_assume

(Note: you have to use a regular profile with an ID and SECRET and specify the role ARN via a variable like this instead of a profile that specifies a role_arn as documented here since it does not look like the Java SDK supports that format, yet...)

Using environment variables

You can use ERB in your s3_website.yml file which incorporates environment variables:

s3_id: <%= ENV['S3_ID'] %>
s3_secret: <%= ENV['S3_SECRET'] %>
s3_bucket: blog.example.com

(If you are using s3_website on an EC2 instance with IAM roles, you can omit the s3_id and s3_secret keys in the config file.)

S3_website implements support for reading environment variables from a file using the dotenv gem. You can create a .env file in the project's root directory to take advantage of this feature. Please have a look at dotenv's usage guide for syntax information.

Your .env file should containing the following variables:

S3_ID=FOO
S3_SECRET=BAR

S3_website will also honor environment variables named AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN (if using STS) automatically if s3_id is ommitted from s3_website.yml.

Project goals

  • Provide a command-line interface tool for deploying and managing S3 websites
  • Let the user have all the S3 website configurations in a file
  • Minimise or remove the need to use the AWS Console
  • Allow the user to deliver the website via CloudFront
  • Automatically detect the most common static website tools, such as Jekyll, Nanoc, and Middleman.
  • Be simple to use: require only the S3 credentials and the name of the S3 bucket
  • Let the power users benefit from advanced S3 website features such as redirects, Cache-Control headers and gzip support
  • Be as fast as possible. Do in parallel all that can be done in parallel.

s3_website attempts to be a command-line interface tool that is easy to understand and use. For example, s3_website --help should print you all the things it can perform. Please create an issue if you think the tool is incomprehensible or inconsistent.

Additional features

Cache Control

You can use either the setting max_age or cache_controlto enable more effective browser caching of your static assets.

max_age

There are two possible ways to use the option: you can specify a single age (in seconds) like so:

max_age: 300

Or you can specify a hash of globs, and all files matching those globs will have the specified age:

max_age:
  "assets/*": 6000
  "*": 300

After changing the max_age setting, push with the --force option. Force-pushing allows you to update the S3 object metadata of existing files.

cache_control

The cache_control setting allows you to define an arbitrary string that s3_website will put on all the S3 objects of your website.

Here's an example:

cache_control: public, no-transform, max-age=1200, s-maxage=1200

You can also specify a hash of globs, and all files matching those globs will have the specified cache-control string:

cache_control:
  "assets/*": public, max-age=3600
  "*": no-cache, no-store

After changing the cache_control setting, push with the --force option. Force-pushing allows you to update the S3 object metadata of existing files.

Content type detection

By default, s3_website automatically detects the content type of a file with the help of Apache Tika.

For some file types Tika's auto detection does not work correctly. Should this problem affect you, use the content_type setting to override Tika's decision:

content_type:
  "*.myextension": application/my-custom-type

Gzip Compression

If you choose, you can use compress certain file types before uploading them to S3. This is a recommended practice for maximizing page speed and minimizing bandwidth usage.

To enable Gzip compression, simply add a gzip option to your s3_website.yml configuration file:

gzip: true

Note that you can additionally specify the file extensions you want to Gzip (.html, .css, .js, .ico, and .txt will be compressed when gzip: true):

gzip:
  - .html
  - .css
  - .md

Remember that the extensions here are referring to the compiled extensions, not the pre-processed extensions.

After changing the gzip setting, push with the --force option.

s3_website will not gzip a file that is already gzipped. This is useful in the situations where your build tools gzip a file before you invoke s3_website push.

Using non-standard AWS regions

By default, s3_website uses the US Standard Region. You can upload your website to other regions by adding the setting s3_endpoint into the s3_website.yml file.

For example, the following line in s3_website.yml will instruct s3_website to push your site into the Tokyo region:

s3_endpoint: ap-northeast-1

The valid s3_endpoint values consist of the S3 location constraint values.

Ignoring files you want to keep on AWS

Sometimes there are files or directories you want to keep on S3, but not on your local machine. You may define a regular expression to ignore files like so:

ignore_on_server: that_folder_of_stuff_i_dont_keep_locally

You may also specify the values as a list:

ignore_on_server:
  - that_folder_of_stuff_i_dont_keep_locally
  - file_managed_by_somebody_else

If you add the magic word ignore_on_server: _DELETE_NOTHING_ON_THE_S3_BUCKET_, s3_website push will never delete any objects on the bucket.

Excluding files from upload

You can instruct s3_website not to push certain files:

exclude_from_upload: test

The value can be a regex, and you can specify many of them:

exclude_from_upload:
  - test
  - (draft|secret)

Reduced Redundancy

You can reduce the cost of hosting your blog on S3 by using Reduced Redundancy Storage:

  • In s3_website.yml, set s3_reduced_redundancy: true
  • All objects uploaded after this change will use the Reduced Redundancy Storage.
  • If you want to change all of the files in the bucket, you can change them through the AWS console, or update the timestamp on the files before running s3_website again

After changing the s3_reduced_redundancy setting, push with the --force option.

How to use Cloudfront to deliver your blog

It is easy to deliver your S3-based web site via Cloudfront, the CDN of Amazon.

Creating a new CloudFront distribution

When you run the command s3_website cfg apply, it will ask you whether you want to deliver your website via CloudFront. If you answer yes, the command will create a CloudFront distribution for you.

If you do not want to receive this prompt, or if you are running the command in a non-interactive session, you can use s3_website cfg apply --headless (and optionally also use --autocreate-cloudfront-dist if desired).

Using your existing CloudFront distribution

If you already have a CloudFront distribution that serves data from your website S3 bucket, just add the following line into the file s3_website.yml:

cloudfront_distribution_id: your-dist-id

Next time you run s3_website push, it will invalidate the items on CloudFront and thus force the CDN system to reload the changes from your website S3 bucket.

Specifying custom settings for your CloudFront distribution

s3_website lets you define custom settings for your CloudFront distribution.

For example, like this you can define your own TTL and CNAME:

cloudfront_distribution_config:
  default_cache_behavior:
    min_ttl: <%= 60 * 60 * 24 %>
  aliases:
    quantity: 1
    items:
      CNAME: your.website.com

Once you've saved the configuration into s3_website.yml, you can apply them by running s3_website cfg apply.

Invalidating all CloudFront resources (wildcard invalidation)

The following setting is recommended for most users:

cloudfront_wildcard_invalidation: true

Over time, it can reduce your AWS bill significantly. For more information, see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html.

Invalidating root resources instead of index.htmls

By default, s3_website push calls the CloudFront invalidation API with the file-name-as-it-is. This means that if your file is article/index.html, the push command will call the invalidation API on the resource article/index.html.

You can instruct the push command to invalidate the root resource instead of the index.html resource by adding the following setting into the configuration file:

cloudfront_invalidate_root: true

To recap, this setting instructs s3_website to invalidate the root resource (e.g., article/) instead of the filename'd resource (e.g., article/index.html).

No more index.htmls in your URLs!

Note: If the root resource on your folder displays an error instead of the index file, your source bucket in Cloudfront likely is pointing to the S3 Origin, example.com.s3.amazonaws.com. Update the source to the S3 Website Endpoint, e.g. example.com.s3-website-us-east-1.amazonaws.com, to fix this.

Configuring redirects on your S3 website

You can set HTTP redirects on your S3 website in three ways.

Exact page match for moving a single page

If a request is received matching a string e.g. /heated-towel-rail/ redirect to a page e.g. /

This kind of redirect is created in the s3_website.yml file under the redirects: section as follows:

redirects:
  index.php: /
  about.php: /about.html
  music-files/promo.mp4: http://www.youtube.com/watch?v=dQw4w9WgXcQ
  heated-towel-rail/index.html: /
  

Note that the root forward slash is omitted in the requested page path and included in the redirect-to path. Note also that in the heated-towel-rail example this also matches heated-towel-rail/ since S3 appends index.html to request URLs terminated with a slash.

This redirect will be created as a 301 redirect from the first URL to the destination URL on the same server with the same http protocol.

Under the hood s3_website creates a zero-byte index.html page for each path you want redirected with the appropriate x-amz-website-redirect-location value in the metadata for the object. See Amazon S3's x-amz-website-redirect-location documentation for more details.

On terminology: the left value is the redirect source and the right value is the redirect target. For example above, about.php is the redirect source and /about.html the target.

If the s3_key_prefix setting is defined, it will be applied to the redirect target if and only if the redirect target points to a site-local resource and does not start with a slash. E.g., about.php: about.html will be translated into about.php: VALUE-OF-S3_KEY_PREFIX/about.html.

Prefix replacement for moving a folder of pages

Common to content migrations, content pages often move from one subdirectory to another. For example if you're moving all the case studies on your site under /portfolio/work/ to /work/. In this case we use a prefix replacement such that /portfolio/work/walkjogrun/ gets 301 redirected to /work/walkjogrun/.

To do this we add a new rule to the routing_rules: section as follows:

  - condition:
        key_prefix_equals: portfolio/work/
    redirect:
        protocol: https
        host_name: <%= ENV['REDIRECT_DOMAIN_NAME'] %>
        replace_key_prefix_with: work/
        http_redirect_code: 301

Here:

  • -condition: indicates the start of a new rule.
  • key_prefix_equals: introduces the path prefix (also without the leading / per the exact page match). Note that this prefix matches anything underneath it so every case study under that path will be handled by the subsequent redirect
  • redirect: indicates the start of the redirect definition
  • protocol: is optional and defaults to http.
  • host_name: is optional but the default is the amazonaws.com bucket name not the actual domain name so this also effectively required for our site. In this example we use an environment variable to store the server hostname to support building to different environments. REDIRECT_DOMAIN_NAME can be configured on a CI server as well any CodePipelines responsible for building the site to different environments. If you're running locally you'll need to set REDIRECT_DOMAIN_NAME=local.myhostname.com
  • replace_key_prefix_with: indicates the substitution to use in place of the matched prefix. This is the only field required by s3_website, so effectively this rule works like a replace rule e.g. replace portfolio/work with /work in the string portfolio/work/walkjogrun
  • http_redirect_code: is optional and defaults to 302 Temporary redirect which is terrible for SEO since your content temporarily vanishes from the Google index until the response changes for the URL. This is almost never what you want. You can use this to temporarily redirect any content you haven't migrated to the new site yet as long as you remove or replace the 302 with a link to a permanent home. This tells Google to forget the old location of the page and use the new content at the new URL. For pages that move you'll see little if any discrepancy in Google traffic.

After adding the configuration, run the command s3_website cfg apply on your command-line interface. This will apply the routing rules on your S3 bucket.

For more information on configuring redirects, see the documentation of the configure-s3-website gem, which comes as a transitive dependency of the s3_website gem. (The command s3_website cfg apply internally calls the configure-s3-website gem.)

Prefix coallescing for deleting pages (or consolidating)

If you 301 redirect lots of content into one new path you're telling Google that the old pages are gone so only the destination page is important moving forward. E.g. if you had 10 services pages and consolidate them into 1 services listing page you'll lose the 10 pages uniquely optimized for different sets of keywords and retain just 1 page with no real keyword focus and hence less SEO value.

For example, we're not porting the entire set of pages under the folder /experience to the new website. Some of these pages still get traffic from either Google or inbound links so we don't want to just show a 404 content not found error. We will 301 redirect them to the most useful replacement page. In the case of /experience we don't have anything better to show than just the home page so that is how the redirect is configured.

Here's how to redirect to indicate a deleted page:

  - condition:
        key_prefix_equals: experience/
    redirect:
        protocol: https
        host_name: <%= ENV['REDIRECT_DOMAIN_NAME'] %>
        **replace_key_with**: /
        http_redirect_code: 301

Note the only difference is that instead of using replace_key_prefix_with we use replace_key_with to effectively say "replace the entire path matching the prefix specfied in the condition with the new path".

On skipping application of redirects

If your website has a lot of redirects, you may find the following setting helpful:

treat_zero_length_objects_as_redirects: true

The setting allows s3_website push to infer whether a redirect exists on the S3 bucket. You will experience faster push performance when this setting is true.

If this setting is enabled and you modify the redirects setting in s3_website.yml, use push --force to apply the modified values.

For backward-compatibility reasons, this setting is false by default.

In this context, the word object refers to object on S3, not file-system file.

Specifying custom concurrency level

By default, s3_website does 3 operations in parallel. An operation can be an HTTP PUT operation against the S3 API, for example.

You can increase the concurrency level by adding the following setting into the s3_website.yml file:

concurrency_level: <integer>

However, because S3 throttles connections, there's an upper limit to the level of parallelism. If you start to see end-of-file errors, decrease the concurrency level. Conversely, if you don't experience any errors, you can increase the concurrency level and thus benefit from faster uploads.

If you experience the "too many open files" error, either increase the amount of maximum open files (on Unix-like systems, see man ulimit) or decrease the concurrency_level setting.

Simulating deployments

You can simulate the s3_website push operation by adding the --dry-run switch. The dry run mode will not apply any modifications on your S3 bucket or CloudFront distribution. It will merely print out what the push operation would actually do if run without the dry switch.

You can use the dry run mode if you are unsure what kind of effects the push operation would cause to your live website.

S3 website in a subdirectory of the bucket

If your S3 website shares the same S3 bucket with other applications, you can push your website into a "subdirectory" on the bucket.

Define the subdirectory like so:

s3_key_prefix: your-subdirectory

Temporary security credentials with Session Token

AWS temporary security credentials (eg: when assuming IAM roles)

Usage:

session_token: your-token

Migrating from v1 to v2

Please read the release note on version 2. It contains information on backward incompatible changes.

You can find the v1 branch here. It's in maintenance mode. This means that v1 will see only critical bugfix releases.

Example configurations

See more example-configurations

On security

If the source code of your website is publicly available, ensure that the s3_website.yml file is in the list of ignored files. For git users this means that the file .gitignore should mention the s3_website.yml file.

If you use the .dotenv gem, ensure that you do not push the .env file to a public git repository.

Known issues

Please create an issue and send a pull request if you spot any.

Versioning

s3_website uses Semantic Versioning.

In the spirit of semantic versioning, here is the definition of public API for s3_website: Within a major version, s3_website will not break backwards-compatibility of anything that is mentioned in this README file.

Development

See development.

Contributing

We (users and developers of s3_website) welcome patches, pull requests and ideas for improvement.

When sending pull requests, please accompany them with tests. Favor BDD style in test descriptions. Use VCR-backed integration tests where possible. For reference, you can look at the existing s3_website tests.

If you are not sure how to test your pull request, you can ask the gem owners to supplement the request with tests. However, by including proper tests, you increase the chances of your pull request being incorporated into future releases.

Alternatives

License

MIT. See the LICENSE file for more information.

Contributors

This gem is created by Lauri Lehmijoki. Without the valuable work of Philippe Creux on jekyll-s3, this project would not exist.

See the Contributors.

Community articles

Donations

Support via Gittip

s3_website's People

Contributors

adelevie avatar akshaykarle avatar c0state avatar ckdake avatar code-tree avatar dteoh avatar fitztrev avatar jordanwhite avatar lackac avatar laurilehmijoki avatar matsu911 avatar mbleigh avatar mrjoy avatar msonsona avatar nicluo avatar opsmason avatar pcreux avatar pjanik avatar pjkelly avatar pnc avatar rnctx avatar rodrigoreis22 avatar ross-hunter avatar scytacki avatar stanislas avatar tatey avatar tmutton avatar tobymarsden avatar tombell avatar xtuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

s3_website's Issues

Getting "Bucket must be addressed using specified endpoint" on `cfg apply`

Perhaps I'm doing it wrong, but I keep getting this error when I run s3_website cfg apply:

jed:~/Dropbox/Code/Sites/jedfoster.com [git:master+?]  
โ†’ s3_website cfg apply
Applying the configurations in s3_website.yml on the AWS services ...
/Users/jed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/configure-s3-website-1.5.0/lib/configure-s3-website/http_helper.rb:54:in `call_api': AWS API call failed: (GenericError)
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><RequestId>7B02DC9DEF00EFB1</RequestId><Bucket>assets.jedfoster.com</Bucket><HostId>ZU2boFGltJbUIQE0IGgJkFnpMaLyOmFh7bBJcznJjm9e6aGKHW29RrK6jgUlKQRi</HostId><Endpoint>assets.jedfoster.com.s3.amazonaws.com</Endpoint></Error>
    from /Users/jed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/configure-s3-website-1.5.0/lib/configure-s3-website/http_helper.rb:7:in `call_s3_api'
    from /Users/jed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/configure-s3-website-1.5.0/lib/configure-s3-website/s3_client.rb:34:in `enable_website_configuration'
    from /Users/jed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/configure-s3-website-1.5.0/lib/configure-s3-website/s3_client.rb:12:in `configure_website'
    from /Users/jed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/configure-s3-website-1.5.0/lib/configure-s3-website/runner.rb:4:in `run'
    from /Users/jed/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/configure-s3-website-1.5.0/bin/configure-s3-website:12:in `<top (required)>'
    from /Users/jed/.rbenv/versions/1.9.3-p194/bin/configure-s3-website:23:in `load'
    from /Users/jed/.rbenv/versions/1.9.3-p194/bin/configure-s3-website:23:in `<main>'

Here's my s3_website.yml file:

s3_id: XXX
s3_secret: XXX
s3_bucket: assets.jedfoster.com

# Below are examples of all the available configurations.
# See README for more detailed info on each of them.

# max_age:
#   "assets/*": 6000
#   "*": 300

gzip:
  - .html
  - .css
  - .md
  - .js

# s3_endpoint:  

# ignore_on_server: that_folder_of_stuff_i_dont_keep_locally

# s3_reduced_redundancy: true

# cloudfront_distribution_id: your-dist-id

# cloudfront_distribution_config:
#   default_cache_behavior:
#     min_TTL: <%= 60 * 60 * 24 %>
#   aliases:
#     quantity: 1
#     items:
#       CNAME: your.website.com

# cloudfront_invalidate_root: true

# concurrency_level: 100

redirects:
  index.php: /
#   about.php: about.html
#   music-files/promo.mp4: http://www.youtube.com/watch?v=dQw4w9WgXcQ

# routing_rules:
#   - condition:
#       key_prefix_equals: blog/some_path
#     redirect:
#       host_name: blog.example.com
#       replace_key_prefix_with: some_new_path/
#       http_redirect_code: 301

s3_website cfg apply "works" if I set s3_bucket to the endpoint listed on my AWS console (under "Static Website Hosting"), but the resulting bucket is assets.jedfoster.com.s3-website-us-west-2.amazonaws.com which I don't think is correct.

Is this a bug, or am I doing it wrong?

Indicate the "calculating diff" state to the user

Currently s3_website prints the follow output:

Deploying _site/* to site.com
No new or changed files to upload
Done! Go visit: http://site.com.s3-website-us-east-1.amazonaws.com/index.html

Change it to this:

Deploying _site/* to site.com
Calculating diff... done
No new or changed files to upload
Done! Go visit: http://site.com.s3-website-us-east-1.amazonaws.com/index.html

The "calculating diff" state might take several seconds or even minutes. As a consequence, it's important to indicate to the user what's going on.

AWS API call failed: TooManyInvalidationsInProgress

It seems that "invalidations" exceed API limit during calculating diff. It says, "Processing your request will cause you to exceed the maximum number of in-progress invalidations".

This error occurs when I run s3_website push several times in several minutes. Before this error occured, the same operations (s3_website push) succeed. Waiting for tens of minutes, it recovers so that I can run s3_website push and get the expected result.

Is this a bug or my wrong configuration?

$ s3_website push
Deploying _site/* to ishibashihideto.net
Calculating diff ... done
No new or changed files to upload
Done! Go visit: http://ishibashihideto.net.s3-website-ap-northeast-1.amazonaws.com/index.html
/Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/simple-cloudfront-invalidator-1.0.0/lib/simple-cloudfront-invalidator.rb:57:in `sign_and_call': AWS API call failed. Reason: (RuntimeError)
<?xml version="1.0"?>
<ErrorResponse xmlns="http://cloudfront.amazonaws.com/doc/2012-05-05/"><Error><Type>Sender</Type><Code>TooManyInvalidationsInProgress</Code><Message>Processing your request will cause you to exceed the maximum number of in-progress invalidations.</Message></Error><RequestId>********-****-****-****-************</RequestId></ErrorResponse>
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/simple-cloudfront-invalidator-1.0.0/lib/simple-cloudfront-invalidator.rb:30:in `invalidate'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/s3_website-1.3.2/lib/cloudfront/invalidator.rb:14:in `invalidate'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/s3_website-1.3.2/lib/s3_website/tasks.rb:36:in `invalidate_cf_dist_if_configured'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/s3_website-1.3.2/lib/s3_website/tasks.rb:10:in `push'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/s3_website-1.3.2/bin/s3_website:52:in `push'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/gems/s3_website-1.3.2/bin/s3_website:59:in `<top (required)>'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/bin/s3_website:23:in `load'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/bin/s3_website:23:in `<main>'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/ishibashi/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'

Upload "dir/index.html" as "dir", with text/html mime type to avoid trailing slash

Hi,

Would it be feasible to add a configuration parameter so html files with location in the format

dir/index.html

Are uploaded just as

dir

with text/html as the mime type? My reason is to avoid the 301 redirect generated by S3 from "dir" to "dir/" when visiting such a URL in the browser.

Would any of the authors have any guidance on what to do to add this enhancement? (Or even explanations why this isn't possible or a good idea) I'm not familiar with Ruby, but happy to learn.

Thanks,

Michal.

dotenv Gem Support

It would be cool if s3_website supported the dotenv gem. Then I could define environment variables in a .env file that I don't check into version control while s3_website.yml IS checked in.

This would allow me to deploy from both my local machine as well as Travis CI (via GitHub hooks).

gzip option doesn't seem to do anything?

Sorry for all the questions but just tried the gzip option and it doesn't' seem to do anything.. do I have to gzip the files myself? I know that's probably the answer just wanted to make sure.

Support --headless in s3_website cfg apply

Hey

I am setting s3_website up into my grunt task and for this I cannot give human input.
You do have a headless mode which works great for the push command but seems not to be supported for the s3_website cfg apply command.

For consistency and using this for automated task it would help to have a headless mode for all stages of the script.

I guess either default back to "N" for the cloudfront question or make a setting in the s3_website.yml for cloudfront: true or cloudfront: false for this option.

Thanks

GZIP Option

How may I change the GZIP method or options?
For instance, specifying a different compression ratio, or using Google's Zopfli library?

Problem when s3_website push

On mac I often get this error when s3_website push. Anybody has any idea how I could fix this?

Deploying _site/* to webrc.co
Calculating diff //Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/openssl/buffering.rb:145:in sysread_nonblock': end of file reached (EOFError) from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/openssl/buffering.rb:145:inread_nonblock'
from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/protocol.rb:135:in rbuf_fill' from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/protocol.rb:116:inreaduntil'
from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/protocol.rb:126:in readline' from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/http.rb:2219:inread_status_line'
from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/http.rb:2208:in read_new' from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/http.rb:1191:intransport_request'
from /Users/sabondano/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/net/http.rb:1177:in request' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/session.rb:64:inrequest'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:173:in block in request' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:194:insession_for'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:171:in request' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/connection.rb:173:inrequest'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/http/net_http_handler.rb:66:in handle' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:231:inblock in make_sync_request'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:267:in retry_server_errors' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:227:inmake_sync_request'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:472:in block (2 levels) in client_request' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:355:inlog_client_request'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:441:in block in client_request' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:337:inreturn_or_raise'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:in client_request' from (eval):3:inhead_object'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:294:in head' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:313:inlast_modified'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:77:in last_modified_and_md5' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:62:inmap_s3_object_to_filey'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:17:in block in do_internal_load' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:incall'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:in block (2 levels) in in_parallel_or_sequentially' from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:incall'
from /Users/sabondano/.rvm/gems/ruby-1.9.2-p320/gems/filey-diff-1.4.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:in `block (3 levels) in in_parallel_or_sequentially'

New user: No Such Key error

Hi,

I'm a new user. I'm having trouble getting s3_website to work. Here is the traceback:

Carry-Tiger:Website andrewlahser$ s3_website push
Deploying _site/* to howconceptual.com
Calculating diff /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:339:in return_or_raise': No Such Key (AWS::S3::Errors::NoSuchKey) from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:inclient_request'
from (eval):3:in head_object' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:294:inhead'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:57:in map_s3_object_to_filey' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:17:inblock in do_internal_load'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:in call' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:inblock (2 levels) in in_parallel_or_sequentially'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:in call' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:inblock (3 levels) in in_parallel_or_sequentially'

So, I also tried disabling parallel processing.

Carry-Tiger:Website andrewlahser$ disable_parallel_processing=true s3_website push
Deploying _site/* to howconceptual.com
Calculating diff /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:339:in return_or_raise': No Such Key (AWS::S3::Errors::NoSuchKey) from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:inclient_request'
from (eval):3:in head_object' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:294:inhead'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:57:in map_s3_object_to_filey' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:17:inblock in do_internal_load'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:in call' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:inblock (2 levels) in in_parallel_or_sequentially'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:30:in call' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:30:ineach'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:30:in in_parallel_or_sequentially' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:19:indo_internal_load'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/data_source.rb:8:in get_fileys' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/comparison.rb:28:inselect_in_outer_array'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/filey-diff-1.4.0/lib/filey-diff/comparison.rb:11:in list_changed' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/lib/s3_website/diff_helper.rb:11:inblock in resolve_files_to_upload'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/lib/s3_website/diff_helper.rb:34:in with_progress_indicator' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/lib/s3_website/diff_helper.rb:4:inresolve_files_to_upload'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/lib/s3_website/uploader.rb:49:in upload_files' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/lib/s3_website/uploader.rb:15:inrun'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/lib/s3_website/tasks.rb:8:in push' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/bin/s3_website:52:inpush'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:120:ininvoke_command'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor.rb:363:in dispatch' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/base.rb:439:instart'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/gems/s3_website-1.4.0/bin/s3_website:59:in <top (required)>' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/bin/s3_website:23:inload'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/bin/s3_website:23:in <main>' from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:ineval'
from /Users/andrewlahser/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `

'

I apologize if this is a silly question. I'm not sure what to do next. I have a medium sized jekyll site (about 500 pages).

Setting up API credentials

Hi there,

I am sure this is something easy that I just can't see right now but I seem to be unable to set up the correct API credentials.

What I got so far:
I added a user in IAM with the group policy and user policy as follows:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:*",
      "Resource": "*"
    }
  ]
}

And still get AllAccessDisabled when I do s3_website cfg apply.

The very same credentials work fine when using an FTP client like Transmit. Are there any other settings I'm not aware of that have to be set for this to work?

Any help is appreciated.

S3 Secret ID's are publicly viewable

I'm quite new to Ruby and AWS, so maybe I'm doing something wrong, but I've just tried this out and noticed that when you run s3_website push the s3_website.yml file is uploaded into your site's home directory.

So anyone who then goes to your URL, eg bucketname.s3-website-us-west-2.amazonaws.com/s3_website.yml can see these keys, which obviously is a security concern.

(PS, I should add that I'm using Jekyll to build my site. I've just checked out the older repo jekyll-s3, and the configuration file there is preceded by an underscore which means it is not included in the _site directory. So, perhaps s3_website needs to generate a config file with an underscore too?)

Concurrency Issue

Hi,

I am having concurrnecy issues, tried this in yam
concurrency_level: 1
disable_parallel_processing: true

but still get the error, only way around this is:

disable_parallel_processing=true s3_website push

Fetching: filey-diff-1.4.0.gem (100%)
Fetching: s3_website-1.3.2.gem (100%)
Successfully installed filey-diff-1.4.0
Successfully installed s3_website-1.3.2
Gems updated: filey-diff, s3_website

Error generating the delete list

/Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/lib/s3_website/uploader.rb:151:in initialize': no implicit conversion of Array into String (TypeError) from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/lib/s3_website/uploader.rb:151:innew'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/lib/s3_website/uploader.rb:151:in build_list_of_files_to_delete' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/lib/s3_website/uploader.rb:133:inremove_superfluous_files'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/lib/s3_website/uploader.rb:21:in run' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/lib/s3_website/tasks.rb:8:inpush'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/bin/s3_website:52:in push' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/thor-0.18.1/lib/thor/command.rb:27:inrun'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in invoke_command' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/thor-0.18.1/lib/thor.rb:363:indispatch'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/thor-0.18.1/lib/thor/base.rb:439:in start' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/gems/s3_website-1.3.2/bin/s3_website:59:in<top (required)>'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/bin/s3_website:23:in load' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/bin/s3_website:23:in

'
from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in eval' from /Users/ulises/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in'

After first s3_website cfg apply nothing happens (can't say yes to create cloudfront distribution)

First time user here. After the first s3 cfg apply command I got the following message and after a long time nothing happened at all:

Applying the configurations in s3_website.yml on the AWS services ...

After, I was tired of waiting I was able to continue after clicking enter but didnt get a chance to say yes to delivering via cloudfront which would've been nice.

Just wanted to share incase it can be fixed for future first time users.

Crash while offline

If one tries to s3_website push while not connected to the internet, the program will just crash and burn without providing any proper error message.

Deploying _site/*
Calculating diff //System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:877:in `connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:857:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/session.rb:118:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:208:in `_create_session'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:193:in `session_for'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:171:in `request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/connection.rb:173:in `request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/http/net_http_handler.rb:66:in `handle'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:231:in `block in make_sync_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:267:in `retry_server_errors'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:227:in `make_sync_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:472:in `block (2 levels) in client_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:355:in `log_client_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:441:in `block in client_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:337:in `return_or_raise'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:in `client_request'
    from (eval):3:in `list_objects'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/s3/object_collection.rb:297:in `list_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/s3/paginated_collection.rb:29:in `_each_item'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/collection/with_limit_and_next_token.rb:54:in `_each_batch'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/collection.rb:82:in `each_batch'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/collection.rb:49:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/s3/object_collection.rb:282:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/aws_sdk_s3.rb:24:in `map'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/aws_sdk_s3.rb:24:in `in_parallel_or_sequentially'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/aws_sdk_s3.rb:19:in `do_internal_load'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/data_source.rb:8:in `get_fileys'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/comparison.rb:28:in `select_in_outer_array'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/comparison.rb:11:in `list_changed'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/diff_helper.rb:11:in `block in resolve_files_to_upload'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/diff_helper.rb:34:in `with_progress_indicator'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/diff_helper.rb:4:in `resolve_files_to_upload'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/uploader.rb:49:in `upload_files'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/uploader.rb:14:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/tasks.rb:8:in `push'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/bin/s3_website:52:in `push'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/bin/s3_website:59:in `<top (required)>'
    from /usr/bin/s3_website:23:in `load'
    from /usr/bin/s3_website:23:in `<main>'

Support Ruby 1.8.7

Many users still use Ruby 1.8.7, because it ships as the system Ruby in many operating systems.

This is where 1.8.7 fails:

$ rvm use 1.8.7
$ bundle install
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0) 
Installing addressable (2.3.4) 
Installing ffi (1.9.0) 
Installing childprocess (0.3.9) 
Installing builder (3.2.2) 
Installing diff-lcs (1.2.4) 
Installing multi_json (1.7.7) 
Installing gherkin (2.12.0) 
Installing cucumber (1.3.2) 
Installing rspec-expectations (2.13.0) 
Installing aruba (0.5.3) 
Installing json (1.8.0) 
Installing mini_portile (0.5.0) 
Installing nokogiri (1.6.0) 
Gem::InstallError: nokogiri requires Ruby version >= 1.9.2.
An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.

Define "Sufficient Permissions" for IAM users

The documentation for IAM users states "create API credentials that have sufficient permissions." The documentation does not list what specific permissions are required on a bucket to use the gem.

CloudFront invalidate all files

Hi,

I realized that S3 Website invalidate all files to CloudFront, instead of the only the ones I changed (while there is a "changed_files" parameter in the CloudFront invalidator). This can be problematic because it invalidate every time I post a new article, and I may quite easily reached the free 1000 invalidations per month (the blog contains nearly 200 files).

Is there an option to enable this behavior ?

EDIT : my mistake, it seems to work in fact. I inaccurately thought that "/" was equal to invalidate all itemsโ€ฆ Sorry :D

Sync Bug (Subfolder naming confusion)

I'm getting some very odd behaviour with my push command... It seems that if I have any sub-folders named the same as my --site directory (in this case "dist"), it uploads the files, then precedes to tell me that that don't exist and would I like to delete them!?

siyfion@virtualMint ~/Git/LabelLogicLive_Client $ s3_website push --site dist
Deploying dist/* to labellogiclive.com
Calculating diff ... done
Uploading 11 new file(s)
Upload bower_components/angularytics/dist/angularytics.zip [max-age=3600]: Success!
Upload bower_components/angularytics/dist/angularytics.min.js [gzipped] [max-age=3600]: Success!
Upload bower_components/lodash/dist/lodash.underscore.min.js [gzipped] [max-age=3600]: Success!
Upload bower_components/lodash/dist/lodash.min.js [gzipped] [max-age=3600]: Success!
Upload bower_components/angularytics/dist/angularytics.js [gzipped] [max-age=3600]: Success!
Upload bower_components/lodash/dist/lodash.compat.min.js [gzipped] [max-age=3600]: Success!
Upload bower_components/lodash/dist/lodash.js [gzipped] [max-age=3600]: Success!
Upload bower_components/lodash/dist/lodash.compat.js [gzipped] [max-age=3600]: Success!
Upload bower_components/angularytics/dist/dependencies/lodash.js [gzipped] [max-age=3600]: Success!
Upload bower_components/lodash/dist/lodash.underscore.js [gzipped] [max-age=3600]: Success!
Upload bower_components/angularytics/dist/dependencies/angular.js [gzipped] [max-age=3600]: Success!
bower_components/angularytics/dist/angularytics.js is on S3 but not in your website directory anymore. Do you want to [d]elete, [D]elete all, [k]eep, [K]eep all?
K
Done! Go visit: http://labellogiclive.com.s3-website-eu-west-1.amazonaws.com/index.html
Invalidating Cloudfront items...
  /
succeeded

Route 53 Auto-config

Hi, this gem is really helpful and has really helped me cut down on time to deploy to s3.

I had an idea regarding adding an option for Route 53 in the config file that would auto configure your dns were you using Route 53 (which I suspect most people doing this are).

I could use the ruby_route_53 library for implementation.

Notes

  • Disabled by default (commented out sections in s3_website.yml much like the gzip options)
  • Option to create additional buckets that point to the s3_bucket specified in the config.
    • Ex: s3_bucket: www.example.com with an option that would create a bucket for example.com set to redirect
  • Will run with s3_website apply cfg with error messages for:
    • Optional bucket already exists
    • DNS not on route53 (won't create a new hosted zone if not already on there)
    • Ask the user (with another [Y/n]) if they want to override an existing dns entry if one exists for either the optional buckets (those that redirect) and the main bucket.

Let me know what you think and I can get started on it. The only problem that I can see with it is that it does add another dependency.

Problem invalidating CloudFront item

Hi,

I may be configuring my project badly, but here is the problem: I set up a max age of 86400 seconds (1 day) for all my HTML documents.

When I use s3_website push command, it automatically invalidates the item, but it invalidates, for instance: "/blog/some-key/article/index.html". However, most pages are instead accessed using the URL WITHOUT the index.html. It seems that CloudFront has two copies of the object, so that if I go to "/blog/some-key/article" I'm still being served with the old article, while if I had /article/index.html I am being served with the updated version.

Is there a way to force s3_jekyll to invalidate the URL WITHOUT the /index.html suffix ? Or does it come from a bad configuration of my S3+CloudFront ?

Thanks!

Exception Occurred: Too many open files - [[[[[filepath]]]]] (Errno::EMFILE) Retrying in 3 seconds...

When I try to push my blog to s3, I get thousands and thousands of error messages in my rails console. Here's a small snippet:

Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6671.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6675.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6679.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6682.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6685.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6689.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6691.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6693.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6695.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6696.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6700.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6703.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6704.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6707.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/serve/images/2011/Canada/IMG_6715.jpg (Errno::EMFILE) Retrying in 3 seconds...
Upload serve/2011/mount-evans-and-the-highest-paved-road-in-north-america-part-1/index.html: Success!Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2195.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2196.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2198.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2201.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8321.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8313.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8349.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8314.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8353.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8360.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8374.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8390.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8399.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8402.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8407.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8415.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8412.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8455.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8451.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8453.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8460.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8476.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8517.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8582.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8522.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8529.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8586.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8534.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8556.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8594.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8569.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8579.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8595.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8584.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8588.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8612.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8599.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8342.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8616.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2204.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2354.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2363.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2362.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2367.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2369.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2374.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2383.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2396.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2411.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2206.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2210.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2205.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2219.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2224.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2208.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2235.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2245.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2213.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2222.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2259.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2276.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2244.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2252.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2291.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2272.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2289.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2292.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2296.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2303.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2307.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2298.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2293.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2311.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2338.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2301.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2347.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2305.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2349.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2309.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2312.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2326.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2324.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2345.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2348.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2350.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2297.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2387.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2401.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2468.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2512.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2429.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2493.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2529.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2549.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2567.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2558.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2578.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2583.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2588.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2603.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2618.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2590.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2694.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2710.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2750.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2760.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2747-2.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2824.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2850.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2829.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8794.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2861.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2862.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2872.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8846.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2879.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2887.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2902.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8881.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2942.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2956.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2959.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8897.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_3093.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8642.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8647.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8905.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8651.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8668.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8672.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8908.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8673.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8675.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8677.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8953.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8686.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8688.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8692.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8962.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8695.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8696.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8697.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8968.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8703.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8721.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8712.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8984.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8728.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8761.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8775.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8998.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8817.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8867.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8888.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9016.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_8987.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9004.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9022.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9065.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9074.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9084.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9077.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9089.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9108.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9087.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7335.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9093.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_2727.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9110.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7344.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7365.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7369.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_9114.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7351.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7345.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7353.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7354.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7366.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7371.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7374.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7390.jpg (Errno::EMFILE) Retrying in 3 seconds...Exception Occurred: Too many open files - /Users/Guillaume/Projects/Jekyll/_site/server/images/2011/US/IMG_7396.jpg (Errno::EMFILE) Retrying in 3 seconds...

I also get the occasional:

Exception Occurred: getaddrinfo: nodename nor servname provided, or not known (SocketError) Retrying in 3 seconds...

Then eventually some of my images are successfully uploaded (though I can't confirm all of them are) but I end up with the message "Operation failed even though we tried to recover from it"

Any plans to add file concatenation support?

First things first...this is the most useful thing I've found in a long time. Much thanks.

Gzipping is great, but it would be incredible to have my JS files combined prior to the gzip process.

InvalidS3LocationConstraintError when applying config to eu-west-1

Hello There,

I've added s3_endpoint to my s3_website.yml and set it to eu-west-1 which is where my bucket is located. However when applying the config I get the following error:

Applying the configurations in s3_website.yml on the AWS services ...
/Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/s3_client.rb:136:in `initialize': InvalidS3LocationConstraintError (InvalidS3LocationConstraintError)
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/s3_client.rb:159:in `new'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/s3_client.rb:159:in `by_config_source'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/http_helper.rb:4:in `call_s3_api'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/s3_client.rb:34:in `enable_website_configuration'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/s3_client.rb:12:in `configure_website'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/lib/configure-s3-website/runner.rb:4:in `run'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/gems/configure-s3-website-1.5.1/bin/configure-s3-website:12:in `<top (required)>'
    from /Users/robertrawlins/.rvm/rubies/ruby-2.0.0-p353/bin/configure-s3-website:23:in `load'
    from /Users/robertrawlins/.rvm/rubies/ruby-2.0.0-p353/bin/configure-s3-website:23:in `<main>'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/bin/ruby_executable_hooks:15:in `eval'
    from /Users/robertrawlins/.rvm/gems/ruby-2.0.0-p353@global/bin/ruby_executable_hooks:15:in `<main>'

Am I doing something wrong here? Is that the wrong identifier for that location?

Thanks,

Robert

Re-deploy a site

When i try to redeploy my bucket it fails. For example, if i do a change to some file and if i need to redeploy the site with this change, s3_website fails. First I have to delete manually the files on that bucket, and only in that case s3_website works again. The specific error is:

Calculating diff //usr/lib/ruby/1.9.1/openssl/buffering.rb:174:in sysread_nonblock': end of file reached (EOFError) from /usr/lib/ruby/1.9.1/openssl/buffering.rb:174:inread_nonblock'
from /usr/lib/ruby/1.9.1/net/protocol.rb:141:in rbuf_fill' from /usr/lib/ruby/1.9.1/net/protocol.rb:122:inreaduntil'
from /usr/lib/ruby/1.9.1/net/protocol.rb:132:in readline' from /usr/lib/ruby/1.9.1/net/http.rb:2562:inread_status_line'
from /usr/lib/ruby/1.9.1/net/http.rb:2551:in read_new' from /usr/lib/ruby/1.9.1/net/http.rb:1319:inblock in transport_request'
from /usr/lib/ruby/1.9.1/net/http.rb:1316:in catch' from /usr/lib/ruby/1.9.1/net/http.rb:1316:intransport_request'
from /usr/lib/ruby/1.9.1/net/http.rb:1293:in request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/session.rb:64:inrequest'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:173:in block in request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:194:insession_for'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:171:in request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/connection.rb:173:inrequest'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/http/net_http_handler.rb:66:in handle' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:231:inblock in make_sync_request'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:267:in retry_server_errors' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:227:inmake_sync_request'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:472:in block (2 levels) in client_request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:355:inlog_client_request'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:441:in block in client_request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:337:inreturn_or_raise'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:in client_request' from (eval):3:inhead_object'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:294:in head' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:313:inlast_modified'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:77:in last_modified_and_md5' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:62:inmap_s3_object_to_filey'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:17:in block in do_internal_load' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:incall'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:in block (2 levels) in in_parallel_or_sequentially' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:incall'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:in block (3 levels) in in_parallel_or_sequentially' felipe@excalibur:~/aeRepositories/aeHome$ s3_website push --site dist Deploying dist/* to aehome-staging Calculating diff |/usr/lib/ruby/1.9.1/openssl/buffering.rb:174:insysread_nonblock': end of file reached (EOFError)
from /usr/lib/ruby/1.9.1/openssl/buffering.rb:174:in read_nonblock' from /usr/lib/ruby/1.9.1/net/protocol.rb:141:inrbuf_fill'
from /usr/lib/ruby/1.9.1/net/protocol.rb:122:in readuntil' from /usr/lib/ruby/1.9.1/net/protocol.rb:132:inreadline'
from /usr/lib/ruby/1.9.1/net/http.rb:2562:in read_status_line' from /usr/lib/ruby/1.9.1/net/http.rb:2551:inread_new'
from /usr/lib/ruby/1.9.1/net/http.rb:1319:in block in transport_request' from /usr/lib/ruby/1.9.1/net/http.rb:1316:incatch'
from /usr/lib/ruby/1.9.1/net/http.rb:1316:in transport_request' from /usr/lib/ruby/1.9.1/net/http.rb:1293:inrequest'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/session.rb:64:in request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:173:inblock in request'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:194:in session_for' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:171:inrequest'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/connection.rb:173:in request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/http/net_http_handler.rb:66:inhandle'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:231:in block in make_sync_request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:267:inretry_server_errors'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:227:in make_sync_request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:472:inblock (2 levels) in client_request'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:355:in log_client_request' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:441:inblock in client_request'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:337:in return_or_raise' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:inclient_request'
from (eval):3:in head_object' from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:294:inhead'
from /usr/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:313:in last_modified' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:77:inlast_modified_and_md5'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:62:in map_s3_object_to_filey' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:17:inblock in do_internal_load'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:in call' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:26:inblock (2 levels) in in_parallel_or_sequentially'
from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:in call' from /usr/lib/ruby/gems/1.9.1/gems/filey-diff-1.4.0/lib/filey-diff/data-sources/aws_sdk_s3.rb:35:inblock (3 levels) in in_parallel_or_sequentially

Set "no-cache" to Cache-Control header when max_age=0

On certain files I want to disable caching by setting this header: "Cache-Control: no-cache, max-age=0". If I set max_age to 0, I only get "Cache-Control: max-age=0". Would be great if when max_age is 0, then no-cache is added as well.

Ignore Folders

Hi,

I use the draft feature in Jekyll, however, the push is also pushing draft content, which is not required. Is it possible to add folder filtering?

e.g.
ignore_folders:
"rafts"

Access Denied error on cfg apply

Hi, I'm getting an "Access Denied" error when running 'cfg apply.'

I've already deployed my site successfully and have issued numerous updates using s3_website, and have no problems with the 'push' command--it's specifically when trying to apply my changed configuration (with gzip enabled) that I'm seeing the error.

Is there a specific permission that is required for the cfg apply operation, that is different from those used by 'push'?

I currently have the ListAllMyBuckets, ListBucket, CreateBucket, PutObject, GetObject, and DeleteObject permissions set for my AWS IAM user.

Some simple debugging shows that a PUT request is being generated, and I can see that the local config file is being properly read and used to help generate the request with the appropriate id, secret, and bucket.

Any thoughts? In summary, 'push' works but 'cfg apply' doesn't.


Background: I want to enable gzip. If I change the config file, I need to run 'cfg apply.' Is that correct?

Just pushing the site with the config change hasn't seemed to cause the Content-Encoding header to be added to responses, so I assume I have to apply the change with 'cfg apply.'

Use a generic origin (not the S3 origin) when creating CloudFront dist

Problem

When the s3_website cfg apply creates a CloudFront distribution, it marks the origin as an S3 origin. While it is true that in our case the origin is always an S3 bucket, this causes a problem that @bakura10 describes in #29 (comment).

Solution

Modify the s3_website cfg apply such that it creates the distribution with a generic origin.

Edit: we need to apply this fix into the configure-s3-website, since that gem is responsible for the implementation of the s3_website cfg apply command.

Benefit

New users benefit from this feature, because they will be able to invalidate CloudFront resources like /article/.

I.e., without this feature, they have to stick to URLs like http://mysite.com/article/index.html.

Performance: replace the AWS SDK gem with EventMachine

At the moment s3_website invokes the AWS SDK gem's upload API in parallel, within Thread.new. Obviously, this is considerably faster than performing the uploads sequentially.

I assume that most s3_website users are using an RMI Ruby. As far as I know, the thread schedulers in RMI Rubies are not optimally fair to our use case of making parallel HTTP connections. As a result, I suggest that we try replacing the usage AWS SDK with http://rubyeventmachine.com. It should be able to speed up the HTTP operations of s3_website.

There is, however, one significant hindrance to adopting EventMachine: the Cucumber+VCR integration tests. I don't yet know how to transform them into the evented world. Does anyone have ideas on how to solve this problem? More specifically: how to test evented HTTP requests against fixture data?

Cloudfront invalidation fails

Cloudfront invalidation seems to fail with the following error:

/Users/sudonim/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/simple-cloudfront-invalidator-1.0.0/lib/simple-cloudfront-invalidator.rb:57:in `sign_and_call': AWS API call failed. Reason: (RuntimeError)`

The full response is in this Gist:
https://gist.github.com/sud0n1m/aceecb10f0e48cfd435a

It seems to suggest that I'm sending a malformed response. Is that so?

Gzip option .json support

I believe the docs say gzip compression is only supported for .css, .js, .html, and .txt files. Will you support .json and other popular data formats as well? Is it primarily a matter of setting the Content-Type headers on S3?

I have some serialized data I'd like to use in a Jekyll blog post. The datasets are fairly large so compression would be nice. I realize I can work around this manually by uploading those files to S3, but if I could configure it in s3_website.yml, that'd be really great to have.

License missing from gemspec

Some companies will only use gems with a certain license.
The canonical and easy way to check is via the gemspec,

via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

Even for projects that already specify a license, including a license in your gemspec is a good practice, since it is easily
discoverable there without having to check the readme or for a license file.

For example, there is a License Finder gem to help companies ensure all gems they use
meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough
issue that even Bundler now generates gems with a default 'MIT' license.

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file),
github has created a license picker tool.

In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally
looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :).

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue and let me know. In either case, I'll follow up. Thanks!

p.s. I've written a blog post about this project

Calculating diff takes a long time

I have about 1200 posts on my jekyll site. Compiling it takes about 22 seconds on my Macbook Air (for reference), but the "calculating diff" portion of s3_website push takes over a minute. Is this normal?

Thanks - loving the gem! Just deployed my site to CF with it.

s3_website push doesn't follow symlinks

I'm using cactus (python static website generator) and the static files are not copied into the build folder, and are instead symlinked to the folder. As a result, s3_website push --site .build doesn't follow the symlinks and thus doesn't upload the static files.

Is there anyway to include symlinks? I'm not familiar with ruby.

'Invalid distance' error when pushing

When I push my site, I get this error:

Calculating diff / invalid distance too far back (Zlib::DataError)

I'm running jekyll 1.4.3, ruby 1.9.3, s3_website 1.6.6.

Any thoughts on the issue here? Thanks

Improve performance of the push operation

I noticed that s3_website (via filey-diff, in aws_sdk_s3.rb) makes a HEAD call for every file it is attempting to sync. (In fact does it do multiple HEAD request, I noticed several calls to s3_object.head).

On a slower connection, and with hundreds of files, these multiple HEAD requests can take a few minutes.

Is it possible to have an optional mode where s3_website uses the metadata from the earlier call to Get Bucket. The ETag in the metadata is a MD5 hash of the object, perhaps that could be used? This mode probably could not be used with gzip: mode, I don't think the content-encoding is in the metadata.

Last_Modified

Hi,

When updating files in the S3 bucket, is it possible to add the cache control header to support optimised search engine crawling. The header in the HTTP response we need is Last-Modified

Cloudfront Directory Index Not Working

I'm testing this out with Cloudfront in front of S3. Based on my testing, I can't set subdirectory indices, e.g.

example.com/pretty/index.html -> example.com/pretty/

It works on the S3 source bucket, and your documentation of cloudfront_invalidate_root implies that setting these indices is possible. However, I still receive a "No Such Key" error:

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>pretty/</Key>
<RequestId>--</RequestId>
<HostId>

---
</HostId>
</Error>

I've tried invalidations to fix this. How are you able to set the cloudfront folder indices?

end of file reached (EOFError)

Just set it all up - ran for a while trying to push to a bucket and then BOOM...

Here's the error:

/Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)

Here it is in context

Deploying _site/* to fineart.lesterpickerphoto.com
/Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError) from /Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:inopen'
from /Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in block in connect' from /Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/timeout.rb:66:intimeout'
from /Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:877:in connect' from /Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:862:indo_start'
from /Users/rwboyer/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:857:in start' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/session.rb:118:instart'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:208:in _create_session' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:193:insession_for'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:171:in request' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/connection.rb:173:inrequest'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/http/net_http_handler.rb:66:in handle' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:231:inblock in make_sync_request'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:267:in retry_server_errors' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:227:inmake_sync_request'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:472:in block (2 levels) in client_request' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:355:inlog_client_request'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:441:in block in client_request' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:337:inreturn_or_raise'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:in client_request' from (eval):3:inlist_objects'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/s3/object_collection.rb:297:in list_request' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/s3/paginated_collection.rb:29:in_each_item'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/collection/with_limit_and_next_token.rb:54:in _each_batch' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/collection.rb:82:ineach_batch'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/core/collection.rb:49:in each' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.8.5/lib/aws/s3/object_collection.rb:282:ineach'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/filey-diff-1.2.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:25:in map' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/filey-diff-1.2.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:25:inin_parallel_or_sequentially'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/filey-diff-1.2.1/lib/filey-diff/data-sources/aws_sdk_s3.rb:15:in do_internal_load' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/filey-diff-1.2.1/lib/filey-diff/data-sources/data_source.rb:8:inget_fileys'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/filey-diff-1.2.1/lib/filey-diff/comparison.rb:28:in select_in_outer_array' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/filey-diff-1.2.1/lib/filey-diff/comparison.rb:11:inlist_changed'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/s3_website-1.0.1/lib/s3_website/diff_helper.rb:7:in resolve_files_to_upload' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/s3_website-1.0.1/lib/s3_website/uploader.rb:43:inupload_files'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/s3_website-1.0.1/lib/s3_website/uploader.rb:14:in run' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/s3_website-1.0.1/lib/s3_website/tasks.rb:8:inpush'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/s3_website-1.0.1/bin/s3_website:46:in push' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/command.rb:27:inrun'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:120:in invoke_command' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor.rb:363:indispatch'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/base.rb:439:in start' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/gems/s3_website-1.0.1/bin/s3_website:53:in<top (required)>'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/bin/s3_website:23:in load' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/bin/s3_website:23:in

'
from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in eval' from /Users/rwboyer/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in'

Any ideas or known issues with the versions of ruby/gems that you can see that I use?

Thanks

RB

Digest::Digest deprecation warning with Ruby 2.1.0

On ruby-2.1.0, running push outputs "Digest::Digest is deprecated; use Digest" dozens of times.

This is coming from the amazon aws sdk. It's fixed in master, but I don't think it has been released yet. I just wanted to make you aware of this because I don't think the way the current gemspec is configured will catch that update (they're currently on something like 1.31.x, this project is speced to 1.8.x).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.