Skip to content

How to launch a browser together with the server

Lloyd Brookes edited this page Jul 29, 2019 · 2 revisions

Setting the --open flag will launch a browser and navigate to your web app.

By default, it navigates to 127.0.0.1. For example, this command will open a browser tab and navigate to http://127.0.0.1:8000.

$ ws --open
Listening on http://mba4:8000, http://127.0.0.1:8000, http://192.168.1.76:8000

Setting the --hostname option will override the default. This will open a browser tab and navigate to http://localhost:8000.

$ ws --hostname localhost --open
Listening on http://localhost:8000
Clone this wiki locally