Skip to content

Commit

Permalink
fix: Fixing launch_milvus by cd'ing to milvus_dir (#3795)
Browse files Browse the repository at this point in the history
Co-authored-by: Bhoumik Shah <bhoumis@amazon.com>
  • Loading branch information
t0r0id and Bhoumik Shah authored Jan 3, 2023
1 parent e53cc2b commit 43328d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/utils/doc_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def launch_milvus(sleep=15, delete_existing=False):
with open(milvus_dir / "docker-compose.yml", "wb") as f:
f.write(request.content)

status = subprocess.run(["cd /home/$USER/milvus/ && docker-compose up -d"], shell=True)
status = subprocess.run([f"cd {milvus_dir} && docker-compose up -d"], shell=True)

if status.returncode:
logger.warning(
Expand Down

0 comments on commit 43328d2

Please sign in to comment.