Skip to content

Instantly share code, notes, and snippets.

@opyate
Created September 9, 2017 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opyate/abc0353ba318438ee57650d4ef245775 to your computer and use it in GitHub Desktop.
Save opyate/abc0353ba318438ee57650d4ef245775 to your computer and use it in GitHub Desktop.
Quickly create a new Jekyll site, preview it, and publish it to your chosen cloud.
.PHONY: new pub run
new:
docker run --rm --label=jekyll --volume=$(shell pwd):/srv/jekyll -it -p 127.0.0.1:80:80 jekyll/jekyll:3.5.2 jekyll new thenewshiny
run:
docker run --rm --label=jekyll --volume=$(shell pwd)/thenewshiny:/srv/jekyll -it -p 127.0.0.1:80:4000 jekyll/jekyll:3.5.2 jekyll serve
_pub:
gsutil defacl ch -u AllUsers:R gs://my.website
gsutil -m rsync -r -d thenewshiny/_site gs://my.website
gsutil web set -m index.html -e 404.html gs://my.website
pub:
aws s3 cp --recursive thenewshiny/_site s3://my.website
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment