mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
This is a relatively obscure new command-line argument that helps solve the
problem of showing accurate version information in deployed instances of
Datasette even if they were deployed directly from source code.
You can pass --version-note to datasette publish and package and it will then
in turn be passed to datasette when it starts:
datasette --version-note=hello fixtures.db
Now if you visit /-/versions.json you will see this:
{
"datasette": {
"note": "hello",
"version": "0+unknown"
},
"python": {
"full": "3.6.5 (default, Jun 6 2018, 19:19:24) \n[GCC 6.3.0 20170516]",
"version": "3.6.5"
},
...
}
I plan to use this in some Travis CI configuration, refs #313
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| fixtures.py | ||
| test_api.py | ||
| test_csv.py | ||
| test_docs.py | ||
| test_html.py | ||
| test_inspect.py | ||
| test_plugins.py | ||
| test_utils.py | ||