kopia lustrzana https://github.com/simonw/datasette
Removed out-of-date datasette serve help from README
rodzic
e27dd7c12c
commit
084cfe1e00
33
README.md
33
README.md
|
@ -53,39 +53,6 @@ Now visiting http://localhost:8001/History/downloads will show you a web interfa
|
||||||
|
|
||||||
![Downloads table rendered by datasette](https://static.simonwillison.net/static/2017/datasette-downloads.png)
|
![Downloads table rendered by datasette](https://static.simonwillison.net/static/2017/datasette-downloads.png)
|
||||||
|
|
||||||
## datasette serve options
|
|
||||||
|
|
||||||
Usage: datasette serve [OPTIONS] [FILES]...
|
|
||||||
|
|
||||||
Serve up specified SQLite database files with a web UI
|
|
||||||
|
|
||||||
Options:
|
|
||||||
-i, --immutable PATH Database files to open in immutable mode
|
|
||||||
-h, --host TEXT Host for server. Defaults to 127.0.0.1 which means
|
|
||||||
only connections from the local machine will be
|
|
||||||
allowed. Use 0.0.0.0 to listen to all IPs and
|
|
||||||
allow access from other machines.
|
|
||||||
-p, --port INTEGER Port for server, defaults to 8001
|
|
||||||
--reload Automatically reload if code or metadata change
|
|
||||||
detected - useful for development
|
|
||||||
--cors Enable CORS by serving Access-Control-Allow-
|
|
||||||
Origin: *
|
|
||||||
--load-extension PATH Path to a SQLite extension to load
|
|
||||||
--inspect-file TEXT Path to JSON file created using "datasette
|
|
||||||
inspect"
|
|
||||||
-m, --metadata FILENAME Path to JSON file containing license/source
|
|
||||||
metadata
|
|
||||||
--template-dir DIRECTORY Path to directory containing custom templates
|
|
||||||
--plugins-dir DIRECTORY Path to directory containing custom plugins
|
|
||||||
--static STATIC MOUNT mountpoint:path-to-directory for serving static
|
|
||||||
files
|
|
||||||
--memory Make /_memory database available
|
|
||||||
--config CONFIG Set config option using configname:value
|
|
||||||
docs.datasette.io/en/stable/config.html
|
|
||||||
--version-note TEXT Additional note to show on /-/versions
|
|
||||||
--help-config Show available config options
|
|
||||||
--help Show this message and exit.
|
|
||||||
|
|
||||||
## metadata.json
|
## metadata.json
|
||||||
|
|
||||||
If you want to include licensing and source information in the generated datasette website you can do so using a JSON file that looks something like this:
|
If you want to include licensing and source information in the generated datasette website you can do so using a JSON file that looks something like this:
|
||||||
|
|
Ładowanie…
Reference in New Issue