diff --git a/cmd/deploy/main.go b/cmd/deploy/main.go index e715dc4..23f61e2 100644 --- a/cmd/deploy/main.go +++ b/cmd/deploy/main.go @@ -172,6 +172,7 @@ func runDeployFlow(r preflight.Result) { Status: "deploying", CreatedAt: time.Now().Format(time.RFC3339), }) + state.Save(&s) // save before deploy so dashboard shows progress // Step 4: Deploy fmt.Println() @@ -217,6 +218,10 @@ WALLARM_REGION=%s "WALLARM_TOKEN=%s\nWALLARM_CLOUD=%s\nWALLARM_NODE=%s\nWALLARM_PORT=%s\nWALLARM_UPSTREAM_IP=%s\nWALLARM_UPSTREAM_PORT=%s\nWALLARM_LABELS=%s\n", s.APIToken, s.CloudRegion, nodeName, port, upstreamIP, upstreamPort, labels)), 0644) + // Update node status + s.Nodes[0].Status = "running" + state.Save(&s) + fmt.Println() fmt.Println("✅ Deployment complete!") fmt.Println() @@ -292,12 +297,12 @@ func main() { Usage: deploy Start TUI (deploy choice or dashboard) + deploy --deploy Deploy directly from /opt/fw/.env (no prompts) + deploy --remove NAME Remove a node + deploy --status Show node status deploy --tunnel Start reverse SSH tunnel deploy --version Show version deploy --help Show this help - -On first run, wallarm checks system readiness, then guides you through -deployment. On subsequent runs, it shows your existing deployments. `) } help := flag.Bool("help", false, "Show help")