[Misc] Minor fixes and refactor utils code (#1117)

This commit is contained in:
Deshraj Yadav
2024-01-05 14:01:56 +05:30
committed by GitHub
parent 94ba82f2a2
commit 5c1f78879f
29 changed files with 29 additions and 40 deletions

View File

@@ -506,19 +506,6 @@ def runserver():
return
# Step 5: Install UI requirements and start the UI server
try:
os.chdir("ui")
subprocess.run(["yarn"], check=True)
ui_process = subprocess.Popen(["yarn", "dev"], stdout=None, stderr=None)
console.print("✅ [bold green]UI server started successfully.[/bold green]")
except Exception as e:
console.print(f"❌ [bold red]Failed to start the UI server: {e}[/bold red]")
# Wait for the subprocesses to complete
api_process.wait()
ui_process.wait()
# Step 6: Install UI requirements and start the UI server
try:
os.chdir("ui")
subprocess.run(["yarn"], check=True)