Created
September 9, 2017 21:36
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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