Skip to content

Commit

Permalink
fix: Default code directory set to src
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Nov 12, 2024
1 parent f4c563b commit 4aaf780
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libertai_client/commands/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@app.command()
def deploy(path: Annotated[str, typer.Option(help="Path to the root of your repository", prompt=True)] = ".",
code_path: Annotated[
str, typer.Option(help="Path to the package that contains the code", prompt=True)] = "./test"):
str, typer.Option(help="Path to the package that contains the code", prompt=True)] = "./src"):
"""
Deploy or redeploy an agent
"""
Expand Down Expand Up @@ -88,7 +88,8 @@ def deploy(path: Annotated[str, typer.Option(help="Path to the root of your repo
result = container.exec_run(f'/bin/bash -c "{command.content}"')

if result.exit_code != 0:
error_message = f"\n[red]Docker command error: '{result.output.decode().strip('\n')}'"
command_output = result.output.decode().strip('\n')
error_message = f"\n[red]Docker command error: '{command_output}'"
break

if command.title == "Uploading to Aleph and creating the agent VM":
Expand Down

0 comments on commit 4aaf780

Please sign in to comment.