mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
datasette --get status code for error pages, closes #947
This commit is contained in:
parent
77521c6cd7
commit
d02f6151da
3 changed files with 20 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ The ``--get`` option can specify the path to a page within Datasette and cause D
|
|||
}
|
||||
}
|
||||
|
||||
The exit code will be 0 if the request succeeds and 1 if the request produced an HTTP status code other than 200 - e.g. a 404 or 500 error. This means you can use ``datasette --get /`` to run tests against a Datasette application in a continuous integration environment such as GitHub Actions.
|
||||
|
||||
.. _getting_started_serve_help:
|
||||
|
||||
datasette serve --help
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue