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

7

8

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.

Ashelman answered 12/7, 2011 at 18:22 Comment(2)
Related: stackoverflow.com/questions/6379380Ranzini
I recently faced the same problem and found the swift console tool to be very useful for scripted upload to rackspace cloud files. see my answer: serverfault.com/questions/421622/…Dumbfound
M
1

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.

Mcgraw answered 12/7, 2011 at 18:59 Comment(0)
R
0

I'm not aware of anything, but you could probably script something to do this without too much work.

Check out Fog or the official ruby-cloudfiles gem from Rackspace.

Ranzini answered 19/7, 2011 at 15:43 Comment(0)
M
0

This might be what you're looking for:

https://github.com/phillc/cloud-files-asset-sync

Mccarley answered 25/8, 2011 at 1:19 Comment(0)
C
0

This github repository will do at least part of what you are asking.

https://github.com/bermi/cloudfiles-mirror

Contract answered 21/1, 2013 at 0:52 Comment(0)
I
0

Since you're using PHP you should seriously consider using the Rackspace PHP SDK. You can find sample code for working with the CDN service. It'll be a lot easier to work with than writing directly to the Cloud Files API.

Importance answered 21/1, 2013 at 15:28 Comment(0)
H
0

There's a paid service http://beanstalkapp.com/features/deployments for auto deployments to cloud files or other servers.

Homology answered 29/3, 2013 at 17:41 Comment(0)
V
0

try this its completely automated: https://github.com/rumblelabs/asset_sync

Voiture answered 31/8, 2013 at 1:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.