# Exercise 17 — Full update cycle (edit → build → push → restart)

# 1. Change the page title in main.go
sed -i 's|<h1>VisitCounter</h1>|<h1>My Counter</h1>|' \
  listings/visitcounter/app/main.go

# 2. Rebuild
cd listings/visitcounter/app
podman build -t localhost:5000/visitcounter:latest .

# 3. Push
podman push --tls-verify=false localhost:5000/visitcounter:latest

# 4. Restart the Quadlet service
systemctl --user restart visitcounter-app.service

# 5. Verify — new title should appear
curl localhost:8080
