From 118fb35a1ed48a20fb603e5aab326bd9ac0c73fd Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:00:08 +1000 Subject: [PATCH] add hive-ui to start-dev --- cmd/hive/cmd/service.go | 5 +++-- scripts/dev-setup.sh | 4 ++-- scripts/start-dev.sh | 10 ++++++++++ scripts/stop-dev.sh | 7 +++++-- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/cmd/hive/cmd/service.go b/cmd/hive/cmd/service.go index 31fabe26c..a7307e4ac 100644 --- a/cmd/hive/cmd/service.go +++ b/cmd/hive/cmd/service.go @@ -63,8 +63,9 @@ var awsgwCmd = &cobra.Command{ } var hiveUICmd = &cobra.Command{ - Use: "hive-ui", - Short: "Manage the hive-ui service", + Use: "hive-ui", + Aliases: []string{"ui", "hiveui"}, + Short: "Manage the hive-ui service", } var predastoreStartCmd = &cobra.Command{ diff --git a/scripts/dev-setup.sh b/scripts/dev-setup.sh index b21ca7c43..5d847ba0e 100755 --- a/scripts/dev-setup.sh +++ b/scripts/dev-setup.sh @@ -62,7 +62,7 @@ for cmd in "${optional_commands[@]}"; do echo "⚠️ $cmd not found (optional)" case "$cmd" in "air") - echo " Install air for hot reloading: go install github.com/cosmtrek/air@latest" + echo " Install air for hot reloading: go install github.com/air-verse/air@latest" ;; "nbdkit") echo " Install nbdkit: sudo apt-get install nbdkit (Ubuntu/Debian)" @@ -172,4 +172,4 @@ echo "📊 Monitor logs:" echo " tail -f $DATA_DIR/logs/*.log" echo "" echo "🧪 Test with AWS CLI:" -echo " aws --endpoint-url https://localhost:$HIVE_GATEWAY_PORT --no-verify-ssl ec2 describe-instances" \ No newline at end of file +echo " aws --endpoint-url https://localhost:$HIVE_GATEWAY_PORT --no-verify-ssl ec2 describe-instances" diff --git a/scripts/start-dev.sh b/scripts/start-dev.sh index ef030ff1a..797a208a0 100755 --- a/scripts/start-dev.sh +++ b/scripts/start-dev.sh @@ -270,8 +270,18 @@ start_service "awsgw" "$AWSGW_CMD" #check_service "awsgw" "9999" +# 6️⃣ Start Hive UI +echo "" +echo "6️⃣. Starting Hive UI..." + +HIVEUI_CMD="./bin/hive service hive-ui start" + +start_service "hive-ui" "$HIVEUI_CMD" + + echo "" echo "🔗 Service endpoints will be:" +echo " - Hive UI: https://localhost:3000" echo " - NATS: nats://localhost:4222" echo " - Predastore: https://localhost:8443" echo " - AWS Gateway: https://localhost:9999" diff --git a/scripts/stop-dev.sh b/scripts/stop-dev.sh index 8463aa3f8..7ea7e861a 100755 --- a/scripts/stop-dev.sh +++ b/scripts/stop-dev.sh @@ -59,7 +59,10 @@ stop_service() { # Stop services in reverse order echo "Stopping services..." echo "" -# Stop Hive daemon/gateway first (it will terminate running instances, unmount nbd devices) +# Stop Hive UI first (last to start) +stop_service "hive-ui" "$PID_DIR" + +# Stop Hive daemon/gateway (it will terminate running instances, unmount nbd devices) stop_service "hive" "$PID_DIR" # Stop AWSGW @@ -78,7 +81,7 @@ echo "" echo "✅ Hive development environment stopped" # Show any remaining related processes -remaining=$(ps aux | grep -E "(hive|nats|predastore|viperblock)" | grep -v grep | grep -v "stop-dev.sh" || true) +remaining=$(ps aux | grep -E "(hive|hive-ui|nats|predastore|viperblock)" | grep -v grep | grep -v "stop-dev.sh" || true) if [[ -n "$remaining" ]]; then echo "" echo "⚠️ Some related processes may still be running:"