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 automatically navigate to your web app. 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

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