https://andrewbaker.ninja/wp-content/themes/twentysixteen/fonts/merriweather-plus-montserrat-plus-inconsolata.css

👁1views
Tip: Using the Watch command to poll a URL

CloudScale SEO — AI Article Summary
What it isThe Linux Watch command combined with Curl can repeatedly poll a URL at regular intervals to monitor for changes.
Why it mattersThis is particularly useful for testing deployments like blue/green switches to ensure there's no downtime during server cutover operations.
Key takeawayWatch + Curl provides a simple way to continuously monitor URL availability during critical deployment operations.

If you want to quickly test a URL for changes, then the linux Watch command couple with Curl is a really simple way to hit a URL every n seconds (I use this for blue/green deployment testing to make sure there is no downtime when cutting over):

# Install watch command using homebrew
brew install watch
# Poll andrewbaker.ninja every 1 seconds
watch -n 1 curl andrewbaker.ninja

Leave a Reply

Your email address will not be published. Required fields are marked *