Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I put together a wordpress site on a heroku free instance and I'm making all images to go to an S3 bucket and a Cloudfront distribution with this plugin . The thing is, it only uploads the images to S3 and serves them with the proper CNAME I set up.

What I want is to serve the wp-content (all my plugins and themes) through S3. I know it's possible because I've read about it, but all tutorials around are explaining the Origin pull and not this configuration. Can anyone tell me more about how can I achieve this? Thank you!!

share|improve this question

migrated from serverfault.com Jun 1 '13 at 3:16

This question came from our site for professional system and network administrators.

1 Answer 1

up vote 4 down vote accepted

There is no remotely easy way to accomplish this with "push" strategy, because (unlike attachments) plugins and themes do not really declare their resources to WordPress.

To push those resources you need to enumerate them and keep that information up to date. In pull configurations this happens automagically in actual use. For push configuration you will either have to scan everything for assets and upload all of them, or build some kind of way (automated or manual) to figure out which are actually used.

In a nutshell - currently WP doesn't really manage of extension's assets and has little functionality to work with them. Thus prevalence of pull configurations you see reflected in information around.

share|improve this answer
    
Thanks @Rarst ! To configure 'pull' I only need to add my domain to cloudfront, right? Like, in exchange for the S3 bucket I'm poiting right now. –  André Lucas Jun 2 '13 at 15:32
1  
@AndréLucas and replace links in your site and stuff. See previously mentioned abundance of pull config tutorials. :) –  Rarst Jun 2 '13 at 19:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.