automatic push to CDN deployment strategy

Posted by imanc on Stack Overflow See other posts from Stack Overflow or by imanc
Published on 2010-05-07T06:08:05Z Indexed on 2010/05/09 2:08 UTC
Read the original article Hit count: 248

Filed under:
|
|

Does anyone have ideas for a strategy to push content to a CDN upon deployment?

The key issue I'm facing is that we have a site that is available in various contexts: local development, development server, staging, then finally live.

The liver version of the site needs to load assets from a domain, which will be pointed to a CDN: assets.domain.com.

However, we will have numerous references to the assets pointing to a relative folder, e.g. /images/ in css, possibly in js, and in HTML & source.

Our new site will use capistrano for deployment and it may be that we can hook in another build tool (apache ant?) or some custom script to search / replace paths.

I am wondering if anyone has had to deal with this issue before and what solutions you put in place to automate managing the CDN in terms of pushing content up to the CDN and managing html & css references to assets in the CDN.

Thanks

Imanc

© Stack Overflow or respective owner

Related posts about capistrano

Related posts about cdn