From eac07fa1315d19bf14aaad47f4de2fae9783c481 Mon Sep 17 00:00:00 2001 From: Joan Fontanals Martinez Date: Wed, 19 Jul 2023 17:16:44 +0200 Subject: [PATCH] fix: fix db port for deployment --- vectordb/db/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vectordb/db/base.py b/vectordb/db/base.py index 90fdc9d..7dfa88b 100644 --- a/vectordb/db/base.py +++ b/vectordb/db/base.py @@ -128,6 +128,7 @@ def _get_jina_object(cls, assert obj_name is not None, 'Trying to create a Jina Object for Deployment without the name of the vectordb object/class to deploy' uses = f'{push_vectordb_to_hubble(vectordb_name=obj_name, definition_file_path=definition_file)}' use_deployment = False + port = 8080 if 'websocket' in protocol_list: # websocket not supported for Deployment use_deployment = False @@ -148,7 +149,7 @@ def _get_jina_object(cls, workspace=workspace, polling=polling, **kwargs) else: - jina_object = Flow(port=port, protocol=protocol, **kwargs).add(name='indexer', + jina_object = Flow(port=port, protocol=protocol, env=['JINA_LOG_LEVEL=DEBUG'], **kwargs).add(name='indexer', uses=uses, uses_with=uses_with, shards=shards,