The Next Generation Platform is Coming - Get Ready Now!
by fuelviews
GitHub Readme.md
Original README:
Purges your Heroku application's Cloudflare cache on deployment.
This buildpack makes use of Heroku's built-in multi buildpack functionality to make a HTTP POST request to the Cloudflare purge all files API. Each time you deploy your Heroku app, the cache will be cleared.
You will need:
Run the following against your Heroku application:
heroku config:set CF_EMAIL=email@example.com
heroku config:set CF_ZONE_ID=my_zone_id
heroku config:set CF_AUTH_KEY=my_cloudflare_api_key
heroku buildpacks:add https://github.com/jamesmartin/cloudflare-cache-purge-buildpack.git
git push heroku master
The Cloudflare Zone ID for your site can be obtained via the API:
zones
command: $ ./cf bin/zones
zones
. E.g:{
"result": [
{
"id":"this-is-your-zone-id",
"name":"example.com",
"status":"active",
...
Copy the snippet above into CLI.