Update deployment-with-nanobox.md

When using nanobox for the first time I had an issue because the version in the install script was older and my site wouldn't compile.
This commit is contained in:
Robert Lavender 2017-12-19 11:52:04 +00:00 committed by Bjørn Erik Pedersen
parent c3cc9cd492
commit 4c2750bfb7

View File

@ -115,8 +115,8 @@ Do this by adding a custom install script at the root of your project that will
if [[ ! -f /data/bin/hugo ]]; then if [[ ! -f /data/bin/hugo ]]; then
cd /tmp cd /tmp
wget https://github.com/gohugoio/hugo/releases/download/v0.25.1/hugo_0.25.1_Linux-64bit.tar.gz wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.tar.gz
tar -xzf hugo_0.25.1_Linux-64bit.tar.gz tar -xzf hugo_0.31.1_Linux-64bit.tar.gz
mv hugo /data/bin/hugo mv hugo /data/bin/hugo
cd - cd -
rm -rf /tmp/* rm -rf /tmp/*
@ -127,6 +127,9 @@ fi
{{% note %}} {{% note %}}
If the install script fails during `nanobox run` you may need to make it executable with `chmod +x install.sh` If the install script fails during `nanobox run` you may need to make it executable with `chmod +x install.sh`
{{% /note %}} {{% /note %}}
{{% note %}}
Make sure to check the version of Hugo you have installed and update the install script to match.
{{% /note %}}
### Generating a New Hugo App ### Generating a New Hugo App