Skip to content

Instantly share code, notes, and snippets.

@peterlozano
Created August 21, 2014 22:00
Show Gist options
  • Save peterlozano/ab3d77eafe6095c46a2e to your computer and use it in GitHub Desktop.
Save peterlozano/ab3d77eafe6095c46a2e to your computer and use it in GitHub Desktop.
Clear the varnish cache in Azure.
#!/bin/sh
# Set this to the ssh key that you use with azure.
ssh-add ~/.ssh/bsp_rsa
# "azure" is a .ssh/config alias with all the host data.
ssh azure "sudo varnishadm 'ban.url .*'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment