Skip to content

Commit

Permalink
Merge pull request #544 from cheshire-cat-ai/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pieroit authored Nov 3, 2023
2 parents f7f949d + 71412e7 commit 2d0d669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/cat/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def welcome(self):
if secure != '':
secure = 's'

cat_address = f'http{secure}://{os.environ["CORE_HOST"]}:{os.environ["CORE_PORT"]}'
cat_host = os.getenv("CORE_HOST", "localhost")
cat_port = os.getenv("CORE_PORT", "1865")
cat_address = f'http{secure}://{cat_host}:{cat_port}'

with open("cat/welcome.txt", 'r') as f:
print(f.read())
Expand Down
4 changes: 3 additions & 1 deletion core/cat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def get_base_url():
secure = os.getenv('CORE_USE_SECURE_PROTOCOLS', '')
if secure != '':
secure = 's'
return f'http{secure}://{os.environ["CORE_HOST"]}:{os.environ["CORE_PORT"]}/'
cat_host = os.getenv("CORE_HOST", "localhost")
cat_port = os.getenv("CORE_PORT", "1865")
return f'http{secure}://{cat_host}:{cat_port}/'


def get_base_path():
Expand Down

0 comments on commit 2d0d669

Please sign in to comment.