Skip to content

Commit

Permalink
Update plug.md (elixirschool#1154)
Browse files Browse the repository at this point in the history
Replaced localhost with explicit 127.0.0.1
This works around a bug on some platforms
  • Loading branch information
chriseyre2000 authored and doomspork committed Aug 27, 2017
1 parent afae8a3 commit 273bbf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions en/lessons/specifics/plug.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ $ mix run --no-halt
```

Once everything is finished compiling, and `[info] Started app` appears, open a web
browser to `localhost:8080`. It should display:
browser to `127.0.0.1:8080`. It should display:

```
Hello World!
Expand Down Expand Up @@ -168,9 +168,9 @@ end

Start the server again, stopping the previous one if it's running (press `Ctrl+C` twice).

Now in a web browser, go to `localhost:8080`.
Now in a web browser, go to `127.0.0.1:8080`.
It should output `Welcome`.
Then, go to `localhost:8080/waldo`, or any other path.
Then, go to `127.0.0.1:8080/waldo`, or any other path.
It should output `Oops!` with a 404 response.

## Adding Another Plug
Expand Down

0 comments on commit 273bbf8

Please sign in to comment.