k00k
k00k

Reputation: 17583

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?

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

Happy to hear any ideas, alternative or not.

Upvotes: 8

Views: 2995

Answers (7)

John Kloian
John Kloian

Reputation: 1474

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

Upvotes: 0

Thomas Welton
Thomas Welton

Reputation: 148

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

Upvotes: 0

Everett Toews
Everett Toews

Reputation: 10974

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.

Upvotes: 0

user1532942
user1532942

Reputation: 17

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

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

Upvotes: 0

Micah
Micah

Reputation: 131

This might be what you're looking for:

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

Upvotes: 0

gjb
gjb

Reputation: 6317

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.

Upvotes: 0

Bill
Bill

Reputation: 26

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.

Upvotes: 1

Related Questions