Skip to content

proudlygeek/hipstadeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HipstaDeploy

A bash script for generating and deploying static websites on Amazon Cloudfront.

Imgur

Why this stuff?

Deploying a static website (blogs are probably the best suited) on a CDN will give you tremendous amounts of speed from all around the world compared to a dynamic host for a relatively cheap price.

You can use HipstaDeploy with any kind of local blog installation like Ghost, Wordpress or Jekyll.

Requisites

Right now HipstaDeploy expects you to have installed s3_website:

gem install s3_website

Installation

Just run this command if you wanna do a quick Hipstallation:

curl -s https://gist.githubusercontent.com/proudlygeek/9551019ff48053ae5bf3/raw/install.sh | sh

This will download the bash script into /usr/local/bin, so check if is in your env PATH var.

You can check your installation by typing:

hipdep -h

If you prefer the Good Old Ways you can just clone this repository and run:

./deploy.sh

Usage

On the first run you'll have to create file named 's3_website.yml' with this command:

s3_website cfg create

Edit this file with your AWS Credentials:

s3_id: YOUR_AWS_S3_ACCESS_KEY_ID
s3_secret: YOUR_AWS_S3_SECRET_ACCESS_KEY
s3_bucket: your.blog.bucket.com

Create a configuration Hipstafile and set your values:

{
    "site_url": "http://localhost:2368",
    "output_folder": "_site",
    "publish_url": ""
}

Now just fire up HipstaDeploy with:

hipdep

HipstaDeploy will ask you if you want to deploy your static folder to Amazon CloudFront, say Y to rock on!

Your static files will be generated from URL http//localhost:2368 (yes, that's a Ghost blog) and will be saved in a folder named _site.

You can override this behavior by using the -u and -o flags:

hipdep -u http://blog.local:8080 -o static_file

You can also specifiy your publish URL, which is used for RSS via the -r flag:

hipdep -r blog.site.com

License

MIT

About

A bash script for generating and deploying static websites on Amazon Cloudfront.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages