Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwilder/s3-website
Deploy a static website to S3
https://github.com/jwilder/s3-website
Last synced: 23 days ago
JSON representation
Deploy a static website to S3
- Host: GitHub
- URL: https://github.com/jwilder/s3-website
- Owner: jwilder
- Created: 2013-11-07T07:30:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-19T20:39:31.000Z (almost 11 years ago)
- Last Synced: 2024-04-16T00:15:09.274Z (7 months ago)
- Language: Shell
- Size: 898 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
s3-website
==========Basic S3 static website deployment script.
# Features
* Create a WS bucket w/ required ACL
* Minimize and gzip any JavaScript, CSS and HTML using [HTML Compressor](http://code.google.com/p/htmlcompressor/)
and [YUI Compressor](http://yui.github.io/yuicompressor/)
* Set correct content type and content-encoding headers
* Sets HTTP cache headers far into the futureIt does not combine or rename assets for cache busting. You'll need to use your
static site generator for that.This has only been tested with [Jekyll](http://jekyllrb.com/) but should work with other staticaly generated sites.
# Dependencies
* [AWS CLI](http://docs.aws.amazon.com/cli/latest/index.html)
* Java# Setup
1. git clone https://github.com/jwilder/s3-website.git
2. export PATH=$PATH:/path/to/s3-website
# Usage
s3-website _site www.yoursite.comDefaults to us-east-1 region.
AWS_REGION=us-west-1 s3-website _site www.yoursite.com