From a80e1d50b9394feee267d76398b5ab249817156c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 31 May 2018 07:21:27 -0700 Subject: [PATCH] Show error on 'datasette publish heroku --spatialite', refs #301 --- datasette/cli.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/datasette/cli.py b/datasette/cli.py index ce73a69f..66cce81d 100644 --- a/datasette/cli.py +++ b/datasette/cli.py @@ -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 = [