Skip to content

Instantly share code, notes, and snippets.

@scarnecchia
Created February 16, 2020 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scarnecchia/76d599925ba2dc04d0aad1d1fad9085a to your computer and use it in GitHub Desktop.
Save scarnecchia/76d599925ba2dc04d0aad1d1fad9085a to your computer and use it in GitHub Desktop.

Quick notes regarding WSL 2 and Hugo

  1. Install Hugo through Homebrew for Linux
  2. Create a firewall rule exposing Hugo's default port (1313)
  3. Run hugo serve --bind=0.0.0.0 -b http://$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1):1313/ or just ifconfig and paste the IP for eth0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment