CDN Asset Pipeline Plugin

  • Tags: cdn
  • Latest: 0.4.1
  • Last Updated: 10 December 2014
  • Grails version: 2.0 > *
1 vote
Dependency:
compile ":cdn-asset-pipeline:0.4.1"

 Documentation  Source  Issues

Summary

Provides Gant scripts to automatically upload Grails app static assets to CDNs. Those scripts can easily be integrated to a build pipeline for continuous delivery/deployment. It uses Asset Pipeline Grails Plugin to precompile assets and Karman Grails Plugin to upload files to various Cloud Storage Services.

Installation

Add the following to your BuildConfig.groovy:

plugins {
	compile ":cdn-asset-pipeline:0.2.2"
}

Description

The CDN Asset Pipeline Plugin provides Gant scripts to automatically upload Grails app static assets to CDNs. Those scripts can easily be integrated to a build pipeline for continuous delivery/deployment.

You should always use a CDN to host all your app static assets:

  • great for your users: faster browser page rendering thanks to CDN,
  • great for your servers: less static requests to handle = increased load capabilities.
Undercover, it uses Asset Pipeline Grails Plugin to precompile assets and Karman Grails Plugin to upload files to various Cloud Storage Services.

It adds two Gant scripts:

  • asset-cdn-push to upload assets to a CDN directory/bucket,
  • asset-cdn-cors to add a CORS GetRule to a directory/bucket.
Kudos to David Estes for Asset Pipeline and Karman Grails plugins as well as his feedback on this one!

GitHub project and documentation are located here: https://github.com/agorapulse/grails-cdn-asset-pipeline