Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sparkbox/mina-cloudflare-purge

Remove files from a Cloudflare zone cache
https://github.com/sparkbox/mina-cloudflare-purge

Last synced: 5 days ago
JSON representation

Remove files from a Cloudflare zone cache

Awesome Lists containing this project

README

        

# Mina Cloudflare Purge

Purge files from a Cloudflare zone cache.

## Installation

## Usage

```
# Your Mina deploy.rb file

require 'mina/cloudflare_purge'

set :cloudflare_zone, 'zone_id'
set :cloudflare_auth_email, '[email protected]'
set :cloudflare_auth_key, 'auth_key'

...

task :deploy do
deploy do
# Deploy stuff
on :launch do
# Launch stuff
end
end
# Run the task locally after the deployment has finished successfully
# Note this happens outside of the deploy block
run :local do
command 'bundle exec mina cloudflare:purge:all_files'
end
end
```