Skip to content

Instantly share code, notes, and snippets.

@jfcomeau
Created October 28, 2016 16:55
Show Gist options
  • Save jfcomeau/9a9d949fbddc7a04f5aa9d17ea4ff427 to your computer and use it in GitHub Desktop.
Save jfcomeau/9a9d949fbddc7a04f5aa9d17ea4ff427 to your computer and use it in GitHub Desktop.
Jekyll serve using local IP (useful to test on multiple devices a same local network)
jekyll s --host $(awk '/inet / && $2 != "127.0.0.1"{print $2}' <(ifconfig))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment