Created
March 19, 2015 23:20
-
-
Save NickCraver/c9e71f89ad6f56657b71 to your computer and use it in GitHub Desktop.
pre-push git hook for CloudFlare purging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sleep 10s && curl https://www.cloudflare.com/api_json.html \ | |
-d 'a=fpurge_ts' \ | |
-d 'tkn=<insert API token>' \ | |
-d 'email=<insert email>' \ | |
-d 'z=<insert domain>' \ | |
-d 'v=1' & | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment