publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.
I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.
As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py
Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-26 05:15:59 +00:00
|
|
|
$ datasette publish heroku --help
|
2018-07-11 02:04:13 +00:00
|
|
|
|
publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.
I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.
As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py
Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-26 05:15:59 +00:00
|
|
|
Usage: datasette publish heroku [OPTIONS] [FILES]...
|
2018-07-11 02:04:13 +00:00
|
|
|
|
|
|
|
Options:
|
2020-04-02 19:30:53 +00:00
|
|
|
-m, --metadata FILENAME Path to JSON/YAML file containing metadata to publish
|
2019-07-08 02:06:31 +00:00
|
|
|
--extra-options TEXT Extra options to pass to datasette serve
|
2021-03-23 16:19:41 +00:00
|
|
|
--branch TEXT Install datasette from a GitHub branch e.g. main
|
2019-07-08 02:06:31 +00:00
|
|
|
--template-dir DIRECTORY Path to directory containing custom templates
|
|
|
|
--plugins-dir DIRECTORY Path to directory containing custom plugins
|
2019-11-26 02:31:42 +00:00
|
|
|
--static MOUNT:DIRECTORY Serve static files from this directory at /MOUNT/...
|
2019-07-08 02:06:31 +00:00
|
|
|
--install TEXT Additional packages (e.g. plugins) to install
|
|
|
|
--plugin-secret <TEXT TEXT TEXT>...
|
|
|
|
Secrets to pass to plugins, e.g. --plugin-secret
|
|
|
|
datasette-auth-github client_id xxx
|
|
|
|
--version-note TEXT Additional note to show on /-/versions
|
2020-06-11 16:02:03 +00:00
|
|
|
--secret TEXT Secret used for signing secure values, such as signed
|
|
|
|
cookies
|
2019-07-08 02:06:31 +00:00
|
|
|
--title TEXT Title for metadata
|
|
|
|
--license TEXT License label for metadata
|
|
|
|
--license_url TEXT License URL for metadata
|
|
|
|
--source TEXT Source label for metadata
|
|
|
|
--source_url TEXT Source URL for metadata
|
|
|
|
--about TEXT About label for metadata
|
|
|
|
--about_url TEXT About URL for metadata
|
|
|
|
-n, --name TEXT Application name to use when deploying
|
2020-10-08 23:30:46 +00:00
|
|
|
--tar TEXT --tar option to pass to Heroku, e.g.
|
|
|
|
--tar=/usr/local/bin/gtar
|
2019-07-08 02:06:31 +00:00
|
|
|
--help Show this message and exit.
|