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