Skip to content

Instantly share code, notes, and snippets.

@mwesten
Forked from bep/hugo-on-android.md
Last active April 17, 2018 05:56
Show Gist options
  • Save mwesten/ae617b29d85627d2b51ca94be862232f to your computer and use it in GitHub Desktop.
Save mwesten/ae617b29d85627d2b51ca94be862232f to your computer and use it in GitHub Desktop.
Run Hugo on an Android phone
  1. Install Termux

  2. Open the Termux terminal on your Android device and copy-and-paste this and hit ENTER:

apt update;\
apt install -y git golang make;\
export GOPATH=$HOME/go;\
export PATH=$PATH:$GOPATH/bin;\
go get -d github.com/spf13/hugo;\
cd $GOPATH/src/github.com/spf13/hugo;\
make install;\
hugo server -s docs;
  1. Point a browser at http://localhost:1313 and you should see the Hugo site with docs and all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment