mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Pass --token to now alias, refs #459
This commit is contained in:
parent
09ef305c68
commit
05cabaebd9
2 changed files with 37 additions and 7 deletions
|
|
@ -92,8 +92,10 @@ def publish_subcommand(publish):
|
|||
# I couldn't get --target=production working, so I call
|
||||
# 'now alias' with arguments directly instead - but that
|
||||
# means I need to figure out what URL it was deployed to.
|
||||
for single_alias in alias:
|
||||
# Because --alias can be specified multiple times
|
||||
run(["now", "alias", deployment_url, single_alias])
|
||||
for single_alias in alias: # --alias can be specified multiple times
|
||||
args = ["now", "alias", deployment_url, single_alias]
|
||||
if token:
|
||||
args.append("--token={}".format(token))
|
||||
run(args)
|
||||
else:
|
||||
print(deployment_url.decode("latin1"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue