-
-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --tar option to "datasette publish heroku" #969
Comments
I don't think a standard "pass these extra arguments to the publish tool" mechanism will work because there's no guarantee that a publisher uses a CLI tool - or if it does, it might make several calls to different CLI tools. The Cloud Run one runs a couple of commands, as illustrated by this test: datasette/tests/test_publish_cloudrun.py Lines 63 to 73 in a648bb8
Adding a |
I'm working on this now. Just ran this test and it worked (no longer showed my the warning message).
But... I wonder if it should automatically do this if it detects that |
For the moment I'm going to ship this as the |
This issue is about how best to pass additional options to tools used for publishing datasettes. A concrete example is wanting to pass the
--tar
flag to the heroku CLI tool. I think there are at least two options for doing this: documentation for each publishing tool to explain how to set flags via env variables (if possible) or building a mechanism that lets users pass additional flags through datasette.When using
datasette publish heroku binder-launches.db --extra-options="--config facet_time_limit_ms:35000 --config sql_time_limit_ms:35000" --name=binderlytics --install=datasette-vega
to publish https://binderlytics.herokuapp.com/ the following error happens:After installing GNU tar with
brew install gnu-tar
and modifyingdatasette/publish/heroku.py
to include the--tar=/path/to/gnu-tar
publishing works.I think the problem occurs once your heroku slug reaches a certain size. At least when I add only a few 100 entries to the datasette then the error does not occcur.
datasette version 0.49.1
OSX 10.14.6 (18G103)
The text was updated successfully, but these errors were encountered: