aboutsummaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
authorGravatar SwiftyOS <craigswift13@gmail.com> 2023-09-19 13:24:06 +0200
committerGravatar SwiftyOS <craigswift13@gmail.com> 2023-09-19 13:24:06 +0200
commitaa1a65c59c4a2d316aa2a35b6b054eb6563dc0f2 (patch)
tree83065c307d8a16e346f11f49f715e46b252fe966 /cli.py
parentUpdate frontend build (#5258) (diff)
downloadAuto-GPT-aa1a65c59c4a2d316aa2a35b6b054eb6563dc0f2.tar.gz
Auto-GPT-aa1a65c59c4a2d316aa2a35b6b054eb6563dc0f2.tar.bz2
Auto-GPT-aa1a65c59c4a2d316aa2a35b6b054eb6563dc0f2.zip
Updated forge to server the frontend again
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/cli.py b/cli.py
index 508ac6ec1..845a7b5c3 100644
--- a/cli.py
+++ b/cli.py
@@ -264,15 +264,9 @@ def start(agent_name):
script_dir = os.path.dirname(os.path.realpath(__file__))
agent_dir = os.path.join(script_dir, f"autogpts/{agent_name}")
- frontend_dir = os.path.join(script_dir, "frontend")
- frontend_build = os.path.join(frontend_dir, "build.sh")
run_command = os.path.join(agent_dir, "run")
if os.path.exists(agent_dir) and os.path.isfile(run_command):
- subprocess.Popen([frontend_build], cwd=frontend_dir)
os.chdir(agent_dir)
- if os.name == 'nt':
- click.echo(click.style("😞 The script cannot be run on Windows.", fg="red"))
- return
subprocess.Popen(["./run"], cwd=agent_dir)
click.echo(f"Agent '{agent_name}' started")
elif not os.path.exists(agent_dir):