Skip to content

Commit

Permalink
Purge Cloudflare cache using bearer token
Browse files Browse the repository at this point in the history
  • Loading branch information
ltm committed Jul 9, 2020
1 parent 82839c1 commit 6988b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
release: test -z "$CF_TOKEN" || curl -fsS -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE/purge_cache" -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_TOKEN" -H "Content-Type: application/json" --data '{"purge_everything": true}'
release: test -z "$CF_TOKEN" || curl -fsS -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE/purge_cache" -H "Authorization: Bearer $CF_TOKEN" -H "Content-Type: application/json" --data '{"purge_everything": true}'
web: node server.js

0 comments on commit 6988b92

Please sign in to comment.