Remove auto-start of frontend dev server in setup scripts

The setup-autogpt.bat and setup-autogpt.sh scripts no longer automatically start the frontend development server after setup. Users are now instructed to manually stop services with 'docker compose down', and the scripts prompt for exit while keeping services running.
This commit is contained in:
Bentlybro
2025-08-07 10:03:45 +01:00
parent f172b314a4
commit e79b7a95dc
2 changed files with 5 additions and 11 deletions

View File

@@ -120,13 +120,10 @@ if errorlevel 1 (
echo Frontend dependencies installed successfully.
echo.
REM --- Start frontend dev server in the same terminal ---
REM --- Setup complete ---
echo Setup complete!
echo Access AutoGPT at: http://localhost:3000
echo To stop services, press Ctrl+C and run "docker compose down" in %REPO_DIR%\autogpt_platform
echo To stop services, run "docker compose down" in %REPO_DIR%\autogpt_platform
echo.
echo The frontend will now start in this terminal. Closing this window will stop the frontend.
echo Press Ctrl+C to stop the frontend at any time.
echo.
call pnpm.cmd dev
echo Press any key to exit (services will keep running)...
pause >nul

View File

@@ -313,9 +313,6 @@ main() {
setup_logs
run_concurrent_setup
print_color "YELLOW" "Starting frontend..."
(cd "$REPO_DIR/autogpt_platform/frontend" && pnpm dev > "$LOG_DIR/frontend_dev.log" 2>&1 &)
print_color "YELLOW" "Waiting for services to start..."
sleep 20
@@ -330,7 +327,7 @@ main() {
print_color "GREEN" "Setup complete!"
print_color "BLUE" "Access AutoGPT at: http://localhost:3000"
print_color "YELLOW" "To stop services, press Ctrl+C and run 'docker compose down' in $REPO_DIR/autogpt_platform"
print_color "YELLOW" "To stop services, run 'docker compose down' in $REPO_DIR/autogpt_platform"
echo ""
print_color "GREEN" "Press Enter to exit (services will keep running)..."
read -r