Serving a Website Within a Chromebook Terminal
Chromebooks are cheap and easy to use, and now provide a Linux terminal!
If you'd like to serve a website for local development and testing, however, you'll need to bind to the correct IP address, a little like Docker 0.0.0.0
. You will need to find the inet address and bind it to the host, which bash can do as follows:
sudo ifconfig | awk '/^eth/{s=$1;getline;print $2}' | set MY_HOST
jekyll serve --host $MY_HOST
Written by Darren Hickling
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Chromebook
Authors
harshadkale
40.78K
AurelienLourot
3.236K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#