Skip to content

Instantly share code, notes, and snippets.

@mattbrictson
Created January 25, 2012 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbrictson/1679652 to your computer and use it in GitHub Desktop.
Save mattbrictson/1679652 to your computer and use it in GitHub Desktop.
SimpleCDN installation
public class MyApplication extends WebApplication
{
@Override
protected void init()
{
super.init();
// Enable CDN when in deployment mode
if(usesDeploymentConfig())
{
new SimpleCDN("//age39p8hg23.cloudfront.net").install(this);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment