Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.19 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.19 KB

sub85blog

This is my personal web dev blog.

Live Version

View the live working version here.

About

This is basically your average Jekyll install with some html, markdown and Sass hackery.

I added some grunt tasks to save the latest git commit revision number and minify what little CSS there is. With this I can link to each revision on Github from the site footer. and to minify the generated CSS.

I deploy it to AWS S3 and handle AWS Cloudfront using the awesome s3_website gem.

  • The above s3 gem is outdated. Last time I had to do the S3 upload and Cloudfront invalidation manually.

Development Environment

To start development just launch Jekyll from the command line.

 cd {project_root}
 cd site
 jekyll serve

Saving Changes

Commit the changes in GIT and run the gulp tasks to save the git revision hash and minimise the CSS.

git commit -a
cd ../
grunt default
grunt saveRevision
cd site
jekyll build

Deploying the changes

git push origin master

# manually upload files to s3 and create a new invalidation (i.e. /*.html for just HTML files) in Cloudfront.