Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created December 27, 2016 23:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tylerflint/c6316e7755f5a5e330c3ffe709102161 to your computer and use it in GitHub Desktop.
Save tylerflint/c6316e7755f5a5e330c3ffe709102161 to your computer and use it in GitHub Desktop.
Hugo with nanobox
run.config:
engine: static
cache_dirs:
- .bin
extra_path_dirs:
- /app/.bin
extra_steps:
# fetch hugo binary if it doesn't exist
- |
if [[ ! -f .bin/hugo ]]; then
cd /tmp
wget https://github.com/spf13/hugo/releases/download/v0.18/hugo_0.18_Linux-64bit.tar.gz
tar -xzf hugo_0.18_Linux-64bit.tar.gz
mv /tmp/hugo_0.18_linux_amd64/hugo_0.18_linux_amd64 /app/.bin/hugo
cd - >/dev/null
fi
deploy.config:
extra_steps:
# generate the site
- hugo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment