ladjs / express-cdn

:cloud: Node module for delivering optimized, minified, mangled, gzipped assets with Express and Amazon's CDN (S3/CloudFront)
MIT License
660 stars 104 forks source link

ECONNREFUSED on Nodejitsu #35

Closed Nevtep closed 11 years ago

Nevtep commented 11 years ago

when I try to setup express-cdn with my nodejitsu account I keep getting ECONNREFUSED error when starting the app.

My code and output error are in this gist : https://gist.github.com/Nevtep/b2dde38348eb1d655ef2

Nevtep commented 11 years ago

@niftylettuce Nick can you provide some insight on this? I'm having a really hard time configuring express-cdn, it works with production set to false, but I need to get those upload working. Locally I see the get request returning 200 but then CDN: unsuccessful upload error. with a 400 response.

I think that can be due to my local proxy settings so I need to get this working on nodejitsu which is my production environment. Already asked for support there, but any additional insight is appreciated.

niftylettuce commented 11 years ago

@Nevtep I believe I have resolved this issue per the 0.1.0 release, please try downloading the new version from npm, for a changelog, view https://github.com/niftylettuce/express-cdn#changelog -- let me know if this works now

niftylettuce commented 11 years ago

@Nevtep I just re-released 0.1.0 by the way, so please reinstall if you already have installed it. Had to fix a bug with optipng-bin and jpegtran-bin paths.

Nevtep commented 11 years ago

Ok, I'll update, I got this part working so I'm marking this as fixed. Just a las question before closing, Nodejitsu doesn't support optipng nor jpegtran currently, so I forked your code here: https://github.com/RealFilling/express-cdn and just changed the copile calls for gif and jpeg to say "image", like the readCSS method does.

Is this a good way of disabling optipng and jpegtran support? or there's a better workaround?

Thanks for your help! this one is closed.

niftylettuce commented 11 years ago

The latest version of this module has built in binaries of optipng and jpegtran, please try the newest version?

Nevtep commented 11 years ago

Just read the changelong. Great to know =D

Thanks!