#!/usr/bin/env bash # Launch the Stock & Portfolio Analyzer web UI. # Fixed port: 8599 (http://localhost:8599) set -euo pipefail cd "$(dirname "$0")" if pgrep -f "streamlit run app\.py" >/dev/null; then echo "already running: $(pgrep -af 'streamlit run app\.py' | head -1)" exit 0 fi exec .venv/bin/streamlit run app.py \ --server.port 8599 \ --server.headless true \ --browser.gatherUsageStats false