add hive-ui to start-dev

This commit is contained in:
Julian Sommer
2026-01-29 11:00:08 +10:00
parent dc77e2547b
commit 118fb35a1e
4 changed files with 20 additions and 6 deletions
+3 -2
View File
@@ -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{
+2 -2
View File
@@ -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"
echo " aws --endpoint-url https://localhost:$HIVE_GATEWAY_PORT --no-verify-ssl ec2 describe-instances"
+10
View File
@@ -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"
+5 -2
View File
@@ -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:"