mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New -o option for opening Datasette in your browser, closes #970
This commit is contained in:
parent
a258339a93
commit
a980199e61
4 changed files with 15 additions and 1 deletions
|
|
@ -39,4 +39,5 @@ Options:
|
|||
--version-note TEXT Additional note to show on /-/versions
|
||||
--help-config Show available config options
|
||||
--pdb Launch debugger on any errors
|
||||
-o, --open Open Datasette in your web browser
|
||||
--help Show this message and exit.
|
||||
|
|
|
|||
|
|
@ -47,6 +47,10 @@ First, follow the :ref:`installation` instructions. Now you can run Datasette ag
|
|||
This will start a web server on port 8001 - visit http://localhost:8001/
|
||||
to access the web interface.
|
||||
|
||||
Add ``-o`` to open your browser automatically once Datasette has started::
|
||||
|
||||
datasette path/to/database.db -o
|
||||
|
||||
Use Chrome on OS X? You can run datasette against your browser history
|
||||
like so:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue