Show error on 'datasette publish heroku --spatialite', refs #301

custom-router
Simon Willison 2018-05-31 07:21:27 -07:00
rodzic b18e451585
commit a80e1d50b9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 17E2DEA2588B7F52
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -199,6 +199,19 @@ def publish(
_fail_if_publish_binary_not_installed(
"heroku", "Heroku", "https://cli.heroku.com"
)
if spatialite:
click.secho(
"The --spatialite option is not yet supported for Heroku",
bg="red",
fg="white",
bold=True,
err=True,
)
click.echo(
"See https://github.com/simonw/datasette/issues/301",
err=True,
)
sys.exit(1)
# Check for heroku-builds plugin
plugins = [