Skip to content

Commit

Permalink
chore: move to new fal run url (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
badayvedat authored Jan 23, 2024
1 parent d1fdcb5 commit b974fdc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions projects/fal/src/fal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,18 +300,14 @@ def register_application(
)

if id:
# TODO: should we centralize this URL format?
gateway_host = host.url.replace("api.", "gateway.")
gateway_host = remove_http_and_port_from_url(gateway_host)

if alias:
console.print(
f"Registered a new revision for function '{alias}' (revision='{id}')."
)
console.print(f"URL: https://{user_id}-{alias}.{gateway_host}")
console.print(f"URL: https://fal.run/{user_id}/{alias}")
else:
console.print(f"Registered anonymous function '{id}'.")
console.print(f"URL: https://{user_id}-{id}.{gateway_host}")
console.print(f"URL: https://fal.run/{user_id}/{id}")


@function_cli.command("run")
Expand Down

0 comments on commit b974fdc

Please sign in to comment.