-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch_vault.sh
More file actions
executable file
·37 lines (31 loc) · 1.08 KB
/
launch_vault.sh
File metadata and controls
executable file
·37 lines (31 loc) · 1.08 KB
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
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Personal Engineer Vault - Quick Launcher
# Opens your secure workspace vault
echo "🚀 Launching Personal Engineer Vault..."
echo "🔐 Your intellectual property is cryptographically protected"
echo ""
# Check if port 8001 is in use
if lsof -Pi :8001 -sTCP:LISTEN -t >/dev/null 2>&1; then
echo "⚠️ Port 8001 is already in use. Using different port..."
PORT=8002
else
PORT=8001
fi
# Start the server
echo "📡 Starting web server on port $PORT..."
echo "💡 Your vault is now accessible at: http://localhost:$PORT/vault_minimal.html"
echo ""
echo "Keyboard shortcuts:"
echo " Ctrl+N - New note"
echo " Ctrl+S - Save note"
echo " Ctrl+K - Search"
echo " Ctrl+E - Export all"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
# Open browser automatically
sleep 2 && open "http://localhost:$PORT/vault_minimal.html" 2>/dev/null || \
xdg-open "http://localhost:$PORT/vault_minimal.html" 2>/dev/null || \
echo "🌐 Please open: http://localhost:$PORT/vault_minimal.html"
# Start Python HTTP server
cd /Users/air/Lexecon && python3 -m http.server "$PORT"