Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sparkbox/mina-cloudflare-purge
- Owner: sparkbox
- License: mit
- Created: 2016-11-01T19:49:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-02T20:37:22.000Z (about 8 years ago)
- Last Synced: 2024-12-17T02:03:10.332Z (about 1 month ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 1
- Watchers: 21
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mina Cloudflare Purge
Purge files from a Cloudflare zone cache.
## Installation
## Usage
```
# Your Mina deploy.rb filerequire '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
```