Skip to content

Instantly share code, notes, and snippets.

@KalikaKay
Last active May 8, 2018 18:40
Show Gist options
  • Save KalikaKay/bc78c6633286b1b889ec0abf8ff26dd7 to your computer and use it in GitHub Desktop.
Save KalikaKay/bc78c6633286b1b889ec0abf8ff26dd7 to your computer and use it in GitHub Desktop.
Hugo on Cloud 9 as taught to me by Loyall

I keep going back to Loyall, and I will as long as it's there, but I need a quick start.

  • Start a blank workspace on Cloud9
  • run $ go version
    • install it if there's no version installed.
  • run C9 ~/.profile add the following lines at the bottom of file.
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
  • run $ . ~/.profile
  • run $ echo $GOPATH --> this should print /home/ubuntu/go
  • Follow installation instructions for Hugo.
    • Pay attention to the vendor dependencies!
  • run $ hugo version

Hugo has been properly installed, if you see this:

Hugo Static Site Generator v0.27-DEV linux/amd64 BuildDate: 2017-08-10T10:49:50Z
You can find all releases of Hugo on the official github repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment