-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiffnator.sh
More file actions
executable file
·66 lines (55 loc) · 1.46 KB
/
Copy pathdiffnator.sh
File metadata and controls
executable file
·66 lines (55 loc) · 1.46 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# DiffNator CLI Helper Script
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
case "${1:-}" in
start)
echo "🔥 Starting DiffNator..."
npm start
;;
stop)
echo "⏹️ Stopping DiffNator..."
npm run stop
echo "✅ Stopped"
;;
restart)
echo "🔄 Restarting DiffNator..."
npm restart
;;
status|health)
echo "🏥 Checking DiffNator health..."
npm run health
;;
dev)
echo "🔥 Starting DiffNator in development mode..."
npm run dev
;;
dev:visible)
echo "🔥 Starting DiffNator with visible browser..."
npm run dev:visible
;;
install)
echo "📦 Installing dependencies..."
npm install
echo "✅ Installation complete!"
echo "Run './diffnator.sh start' to launch the app"
;;
*)
echo "🔥 DiffNator - The Ultimate Visual Comparison Tool"
echo ""
echo "Usage: ./diffnator.sh [command]"
echo ""
echo "Commands:"
echo " start Start the server (web + proxy + screenshots)"
echo " stop Stop all running processes"
echo " restart Restart all services"
echo " status Check server health"
echo " dev Start in development mode"
echo " dev:visible Start with visible browser (for debugging)"
echo " install Install dependencies"
echo ""
echo "After starting, visit: http://localhost:8080"
exit 1
;;
esac