Created: 2025-08-13 Purpose: Documentation for the one-click startup script for daily standup routine
The start-piper.sh script provides a one-click solution to start all Piper Morgan services for your daily standup routine. It includes comprehensive health checks, platform-specific browser opening, and user-friendly status reporting.
# From the project root directory
./start-piper.sh
That’s it! The script will:
http://localhost:8001http://localhost:8081The script performs comprehensive health checks:
Browser Opening:
open commandxdg-open (with fallback message)start command# Stop all services cleanly
./stop-piper.sh
The stop script will:
Docker not running:
❌ Docker daemon is not running. Please start Docker Desktop and try again.
Solution: Start Docker Desktop and wait for it to fully initialize.
Port conflicts:
❌ API server failed to start on port 8001 after 60 seconds
Solution: Check if another service is using the port:
lsof -i :8001
kill <PID> # if needed
Services already running:
⚠️ API server already running on port 8001
Solution: This is normal - the script detects existing services and continues.
Service logs are stored in the logs/ directory:
logs/api_server.log - API server outputlogs/web_ui.log - Web UI outputlogs/api_server.pid - API server process IDlogs/web_ui.pid - Web UI process IDIf the script fails, you can start services manually:
# Start Docker services
docker-compose up -d
# Start API server
python main.py &
# Start Web UI
cd web && python -m uvicorn app:app --reload --port 8081 &
Edit the script to modify:
MAIN_UI_PORT=8081 - Web UI portAPI_PORT=8001 - API server portMAX_WAIT_TIME=120 - Maximum health check wait timeEnsure your .env file contains:
ANTHROPIC_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here
DATABASE_URL=postgresql://piper:dev_changeme_in_production@localhost:5433/piper_morgan
REDIS_URL=redis://localhost:6379
./start-piper.sh./stop-piper.sh when doneThe startup script automatically loads context from config/PIPER.md:
Startup Time:
Resource Usage:
To add new services to the startup sequence:
Modify the open_browser() function to:
Add to Dock:
alias piper='cd /path/to/piper-morgan && ./start-piper.sh'.zshrc or .bash_profileDesktop Shortcut:
When everything is working correctly, you’ll see:
🎉 Piper Morgan Startup Complete!
2025-08-13 05:02:30 PT - All services are running
📋 Service Status:
🌐 Web UI: http://localhost:8081
🔌 API: http://localhost:8001
🐳 Docker: Infrastructure services running
📝 Daily Standup Ready:
• Chat interface is available for morning standup
• All backend services are healthy and responsive
• VA/Kind context loaded from PIPER.md
📊 Quick Health Check:
✅ API Health: OK
✅ Web UI: OK
Ready for your daily standup with Piper Morgan! 🚀