diff --git a/README.md b/README.md index 52a5cda..fa81295 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,14 @@ See more on [examples](https://github.com/cristianoliveira/ergo/tree/master/examples) +## TL;DR; +```bash +python3 -m http.server 8800 & +echo "http://localhost:8800 mylocalsite" > .ergo +ergo local & # may need sudo since it binds to port 80 +curl http://mylocalsite.localhost +``` + ## Summary * [Philosophy](#philosophy) * [Installation](#installation) @@ -130,15 +138,6 @@ Make sure you have `$GOPATH/bin` in your path: `export PATH=$PATH:$GOPATH/bin` ## Usage -### TL;DR; -```bash -python3 -m http.server 8800 & -echo "http://localhost:8800 mylocalsite" > .ergo -ergo local & # may need sudo since it binds to port 80 -curl http://mylocalsite.localhost -``` ---- - Ergo looks for a `.ergo` file inside the current directory. It must contain the names and URL of the services following the same format as `/etc/hosts` (`domain`+`space`+`url`). The main difference is it also considers the specified port. ### Subdomains for localhost