datasette icon indicating copy to clipboard operation
datasette copied to clipboard

Support extra Heroku apps:create options - region, space, team

Open annapowellsmith opened this issue 7 years ago • 3 comments

It would be useful to document how to pass Heroku CLI options on datasette publish, e.g. --region eu.

annapowellsmith avatar Jun 08 '18 23:06 annapowellsmith

It looks like there are a few extra options we should support:

https://devcenter.heroku.com/articles/heroku-cli-commands

  -t, --team=team            team to use
  --region=region            specify region for the app to run in
  --space=space              the private space to create the app in

Since these differ from the options for Zeit Now I think this means splitting up datasette publish now and datasette publish Heroku into separate subcommands.

simonw avatar Jul 18 '18 15:07 simonw

Now that I've split the heroku command out into a separate default plugin this is a much easier thing to add: https://github.com/simonw/datasette/blob/master/datasette/publish/heroku.py

simonw avatar Sep 03 '18 12:09 simonw

In case it's useful to anyone, as datasette publish heroku doesn't yet support Heroku's cli tool --team flag: If you are using a Heroku personal account but need to use a team/organization account instead, set a default team for your account to use. Commands run through datasette publish heroku will then be actioned using that Heroku team. Kudos to the Heroku support team for pointing this out to me 🤦 .

tlongers avatar Dec 06 '24 10:12 tlongers