datasette --get status code for error pages, closes #947

This commit is contained in:
Simon Willison 2020-09-11 14:32:54 -07:00
commit d02f6151da
3 changed files with 20 additions and 0 deletions

View file

@ -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