Skip to content

Commit

Permalink
Update heroku_architect.py (#1062)
Browse files Browse the repository at this point in the history
* Update heroku_architect.py

Addressing #1060

* Fixed code styling

---------

Co-authored-by: Paul Abumov <[email protected]>
  • Loading branch information
JackUrb and meta-paul authored Oct 20, 2023
1 parent 642202d commit 9fb0dec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mephisto/abstractions/architects/heroku_architect.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ def __setup_heroku_server(self) -> str:
domains = subprocess.check_output(
shlex.split(f"{heroku_executable_path} domains -a {heroku_app_name}")
).decode()
self.__heroku_app_url = domains.split("\n")[1]
possible_domains = domains.split("\n")[1:]
while possible_domains[0].strip() == "":
possible_domains.pop(0)
self.__heroku_app_url = possible_domains[0]
return "https://{}".format(self.__heroku_app_url)

def __delete_heroku_server(self):
Expand Down

0 comments on commit 9fb0dec

Please sign in to comment.