Skip to content

Commit

Permalink
fix: fix db port for deployment (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Jul 19, 2023
1 parent d3d4a43 commit 497d1ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vectordb/db/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 497d1ef

Please sign in to comment.