-
-
Notifications
You must be signed in to change notification settings - Fork 943
Open
Description
Problem
When running manage.sh start after a fresh clone/download of the observability pack, the server fails silently because dependencies aren't installed.
Reproduction:
- Download/clone the
pai-observability-serverpack - Run
observability/manage.sh start - Script outputs "✅ Observability running at http://localhost:5172"
- But server doesn't actually respond - port not bound
Root cause: node_modules missing in apps/server and apps/client
Proposed Fix
Add dependency check at the start of the start and start-detached cases in manage.sh:
# Check and install dependencies if needed
if [ ! -d "$SCRIPT_DIR/apps/server/node_modules" ]; then
echo "📦 Installing server dependencies..."
(cd "$SCRIPT_DIR/apps/server" && bun install)
fi
if [ ! -d "$SCRIPT_DIR/apps/client/node_modules" ]; then
echo "📦 Installing client dependencies..."
(cd "$SCRIPT_DIR/apps/client" && bun install)
fiThis ensures first-time users get a working server without manual intervention.
Environment
- macOS
- bun v1.3.8
- PAI v2.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels