forked from Pimzino/claude-code-spec-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic-tunnel.sh
More file actions
executable file
·27 lines (23 loc) · 952 Bytes
/
basic-tunnel.sh
File metadata and controls
executable file
·27 lines (23 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Basic tunnel example - share dashboard with no authentication
echo "Starting dashboard with public tunnel..."
echo "This will create a public URL anyone can access (read-only)"
echo ""
# Detect if we're in the development directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_ROOT="$( cd "$SCRIPT_DIR/../.." && pwd )"
if [ -f "$PROJECT_ROOT/package.json" ] && grep -q "@pimzino/claude-code-spec-workflow" "$PROJECT_ROOT/package.json"; then
echo "Running from local development version..."
echo ""
cd "$PROJECT_ROOT"
npm run dev:dashboard -- --tunnel
else
echo "Running from npm package..."
echo ""
npx --yes -p @pimzino/claude-code-spec-workflow@latest claude-spec-dashboard --tunnel
fi
# The dashboard will display:
# - Local URL: http://localhost:3000
# - Tunnel URL: https://[random].trycloudflare.com
# - Share the tunnel URL with stakeholders
# - Press Ctrl+C to stop and close the tunnel