Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically deploying assets to Rackspace CDN via git and updating references to those assets?

I'm looking for some help in designing a strategy to automate deployment of a web application's assets (images, css, js) to Rackspace's Cloud Files (CDN) service.

I currently use git push to deploy the web app to a remote server. So here's one way I'm thinking this could happen. Are there any better/cleaner methods?

  • Dev makes changes to an asset file (css, js, or an image)
  • Dev commits his changes
  • Dev pushes his changes to the server
  • Assets are automatically renamed to eliminate cache issues (append git version?) and sent to the CDN
  • Referencing code would be automatically updated to new filename

FYI, this is a PHP app in CodeIgniter 2.x if it matters.

Happy to hear any ideas, alternative or not.

like image 282
k00k Avatar asked Jul 12 '11 18:07

k00k


1 Answers

I've not found anything to automatically do it.

You can use the Rack Space Cloud File API ( http://www.rackspace.com/cloud/cloud_hosting_products/files/api/ ) to upload files to Rackspace's CDN aware containers.

like image 157
Bill Avatar answered Oct 31 '22 20:10

Bill