Skip to content

Commit

Permalink
add -d
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jul 2, 2024
1 parent e27f249 commit e95dddc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,9 @@ def set_environment(env_updates=None):
else:
dockerfile = "docker-compose-nostreamlit.yml"
if str(env_vars["AGIXT_AUTO_UPDATE"]).lower() == "true":
command = f"docker-compose -f {dockerfile} stop && docker-compose -f {dockerfile} pull && docker-compose -f {dockerfile} up"
command = f"docker-compose -f {dockerfile} stop && docker-compose -f {dockerfile} pull && docker-compose -f {dockerfile} up -d"
else:
command = (
f"docker-compose -f {dockerfile} stop && docker-compose -f {dockerfile} up"
)
command = f"docker-compose -f {dockerfile} stop && docker-compose -f {dockerfile} up -d"
print("Press Ctrl+C to stop the containers and exit.")
try:
run_shell_command(command)
Expand Down

0 comments on commit e95dddc

Please sign in to comment.