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.
swift
console tool to be very useful for scripted upload to rackspace cloud files. see my answer: serverfault.com/questions/421622/… – Dumbfound