项目作者: jrzimmerman

项目描述 :
Justin Zimmerman's Hugo Blog
高级语言:
项目地址: git://github.com/jrzimmerman/justinzimmerman.net.git
创建时间: 2017-03-14T02:19:00Z
项目社区:https://github.com/jrzimmerman/justinzimmerman.net

开源协议:

下载


Justin Zimmerman’s Personal Blog

Dear future Justin,

If you’ve found yourself here, you’re probably being ambitious and updating your blog again.

If you just cloned the repo (again), pull the theme git submodule
git submodule update --init --recursive

To update the theme submodule run
git submodule update --recursive --remote

Please find the steps to build and deploy that you’ve probably forgotten about by now:

  • brew update && brew upgrade
  • brew install hugo to get the latest version of Hugo
  • Run hugo to build
  • Test things out locally with hugo server
  • brew install awscli to get the latest version of the aws cli
  • Set up aws cli with aws configure
  • Switch to public folder cd public
  • S3 Upload with Cache Control aws s3 sync . s3://justinzimmerman.net --force --delete --cache-control max-age=172800 --acl public-read --profile justinzimmerman
  • (optional) create a cache invalidation on Cloudfront

aws cli sync will only modify items that need changed, therefore, if cache-control is not working property, empty the bucket, and run the sync command above, do not upload on the s3 dashboard