Skip to content
This repository

Command to upload on build time instead of run time #30

Closed
Almad opened this Issue December 27, 2012 · 6 comments

2 participants

Almad Nick Baugh
Almad

I'd like to avoid the "warming up" period when assets are being uploaded to S3.

Is there a way to invoke the upload on build time, so I can then just switch to another version of the app on production?

Nick Baugh

That's an interesting idea, but currently not supported.

Nick Baugh
Owner

@Almad have you found a resolution to this yet?

Nick Baugh
Owner

you could do this...

var CDN
setTimeout(function() {
  CDN = require('express-cdn')(app, options)
  app.locals.CDN = CDN()
}, 5000) // 5 seconds
Nick Baugh niftylettuce closed this April 13, 2013
Almad
Almad commented April 14, 2013

I've solved this by not using express-cdn, sorry.

Nick Baugh
Owner

@Almad what was your alternative solution?

Almad
Almad commented April 15, 2013

@niftylettuce Custom script on top of raw aws-sdk. Sorry about that, but we kinda cannot wait for patch and developer decided it was more straightforward to implement it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.