Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix db port for deployment #48

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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