Closed jasoncomes closed 7 years ago
after :finished, :clear_cdn do run_locally do execute "curl 'https://api.keycdn.com/zones/purge/43808.json' -u sanitized_username_or_api_token:" end end
Updated file: http://affordablecolleges-5876.kxcdn.com/wp-content/themes/accom-theme/assets/dist/style.min.css
$ bundle exec cap staging deploy
$ bundle exec cap production deploy
$ bundle exec cap production evolve:up
$ bundle exec cap production evolve:restart
@jasoncomes As this is a public repo, I've sanitized the keycdn api token from the issue above
Deployment Task (depoy.rb: KeyCDN Purge Function)
Test 1:
1. Highcharts:
$ bundle exec cap staging deploy
2. Highcharts merged into Master:
$ bundle exec cap production deploy
3. Master:
$ bundle exec cap production evolve:up
4. KeyCDN: Manul Purge by URL - http://affordablecolleges-5876.kxcdn.com/wp-content/themes/accom-theme/assets/dist/style.min.css
5. KeyCDN: Manual Purge of Zone
6. Master:
$ bundle exec cap production evolve:restart