ddfreyne changed the topic of #nanoc to: 3.6.4 (may 29th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
louquillio has quit [Read error: Connection reset by peer]
louquillio has joined #nanoc
number-six has quit [Ping timeout: 260 seconds]
jugglinmike has quit [Quit: Leaving.]
_whitelogger_ has joined #nanoc
number-six has joined #nanoc
<jachymko> this is how i do asset combination/minification: https://gist.github.com/jachymko/6681524
VitamineD has quit [Quit: VitamineD]
yogsototh has joined #nanoc
yogsototh has quit [Read error: Connection reset by peer]
yogsototh has joined #nanoc
VitamineD has joined #nanoc
francois2_ has joined #nanoc
tigert_ has joined #nanoc
<tigert_> hello people :)
tigert_ is now known as tigert
VitamineD has quit [Quit: VitamineD]
francois2 has quit [Quit: Coyote finally caught me]
francois2_ is now known as francois2
VitamineD has joined #nanoc
<ddfreyne> bobthecow: Yeah, RAILS_VERSION can be included in rails but not in the other subprojects
<ddfreyne> bobthecow: so I think the solution I'm going with is multiple repos
yogsototh has quit [Remote host closed the connection]
yogsototh has joined #nanoc
yogsototh has quit [Remote host closed the connection]
yogsototh has joined #nanoc
<jachymko> ddfreyne, multiple repos without submodules? & manually incrementing the version number when breaking changes occur? that sounds reasonable
<ddfreyne> jachymko: Yeah
<ddfreyne> Hmm, I think I don't like Scala that much anymore
<ddfreyne> It seems Scala code can get ugly really quickly
jugglinmike has joined #nanoc
KK4MGV has quit [Ping timeout: 276 seconds]
_whitelogger_ has joined #nanoc
<Evolution> ddfreyne: ping
_whitelogger__ has joined #nanoc
_whitelogger_ has quit [Remote host closed the connection]
<ddfreyne> Evolution: pong
<ddfreyne> Lag: 14 minutes
<Evolution> ddfreyne: yesterday I was hunting for a js minifier type thing for nanoc. bobthecow suggested something like https://gist.github.com/bobthecow/bee9b3f0d923b822b58f but I was hoping for something a bit cleaner. or possibly a filter. was hoping you had a suggestion
jugglinmike has quit [*.net *.split]
matjas has quit [*.net *.split]
<ddfreyne> Evolution: filter :uglify_js
<Evolution> heh, I keep missing stuff in the docs.
<Evolution> thanks.
<ddfreyne> :D
Guest97723 has joined #nanoc
jugglinmike has joined #nanoc
_whitelogger__ has quit [Remote host closed the connection]
_whitelogger___ has joined #nanoc
<ddfreyne> Evolution: Hmm... just filter :uglifyjs should work out of the box. Ar eyou sure you're filtering the right item?
<Evolution> yeah, I think I just realized what I was screwing up.
<Evolution> ddfreyne: yeah. I'm doing something dumb, but I don't know what.
<Evolution> and then http://fpaste.org/41826/03031513/ is the content.
<ddfreyne> Evolution: the layout is still being applied, even to JS content
<Evolution> yeah. how do I fix that
<ddfreyne> Evolution: change layout 'default-haml' to layout 'default-haml' unless item[:extension] == 'js'
<ddfreyne> for instance
<Evolution> that didn't seem to change anything. I still end up with output/assets/js/bootstrap/index.html
<ddfreyne> win 5
<ddfreyne> nevermind about the win 5
<ddfreyne> Evolution: Ahh, you need to adjust the routing rules so that the javascript files will be routed as index.identifier.chop + '.js'
<Evolution> hmmm, that gets me part of the way there.
<Evolution> how do I tell uglifier to mash all the js into one file?
<ddfreyne> Evolution: All in one file is not supported by uglifyjs... not sure what other solutions exist out there
<Evolution> ah. so I am back to what bobthecow was talking about then
matjas has joined #nanoc
number-six has joined #nanoc
<jachymko> Evolution, have you seen my solution? https://gist.github.com/jachymko/6681524
<Evolution> jachymko: oh. interesting
VitamineD has quit [Ping timeout: 240 seconds]
antognolli has quit [Ping timeout: 245 seconds]
antognolli has joined #nanoc
VitamineD has joined #nanoc
_whitelogger___ has joined #nanoc
<guardian> o/
jmont has joined #nanoc
<ddfreyne> \o
<jmont> Hi! Is there any recommended way of deploying nanoc assets to a CDN (like S3+CloudFront, or simply S3 by itself)? I mean, without deploying the hole site to the CDN (assets only)...
<jmont> s/hole/whole/g
<ddfreyne> jmont: Not directly, no
<jmont> thanks ddfreyne :)
<ddfreyne> You could probably fairly easily write a script that does that for you thought
<ddfreyne> -t
<jmont> yes, I think I'll do that :)
<bobthecow> jmont: better than that: set up cloudfront to use your actual site as a backend.
<bobthecow> you just have to make sure you have a cachebuster in your asset urls.
<bobthecow> then you never have to deal with deploying to the cdn, you just deploy to your site and prefix your asset urls with the CDNized version of their path.
<bobthecow> and the CDN automatically handles the "deploy" bit for you :)
<jmont> right, right, I like your idea bobthecow
<jmont> I'll try that :)
<bobthecow> jmont: as an example
<jmont> CloudFront is getting fancier & fancier every day
<bobthecow> those are the exact same file.
<bobthecow> i only deploy the one to presentate.com
<bobthecow> but when i'm rendering pages on presentate, i use the cdn's domain.
<bobthecow> and it magically works :)
<jmont> right!
<jmont> that's interesting
<bobthecow> really, it's the same thing you'd be doing with S3, but saves a step.
<jmont> I'll try setting up Fog to upload to S3, and configuring CloudFront in front of it
<jmont> sweet, thanks for the advice
<jmont> also, I have a Rails application with a static corporate website in front of it; I'd like to use nanoc to handle that (so there's less code in my Rails app)
<darix> jmont: and?
<jmont> any advices on that? or should I simply compile my nanoc website to my application's /public directory?
<darix> jmont: sounds like a good plan
<bobthecow> jmont: yeah, do that.
<jmont> well, I haven't thought about that until I wrote it just now :P
<bobthecow> is the static website intermixed with the rails routes?
<jmont> not really
<bobthecow> rails is on a subdomain or "folder" then?
<darix> bobthecow: sounded like "folder"
<jmont> well, there's the website at www.example.com/, and almost the whole app is insite www.example.com/app (/app/login for instance)
<bobthecow> almost or definitely?
<bobthecow> because the right answer depends :)
<jmont> almost :P
<bobthecow> okay, then yeah.
<bobthecow> compile nanoc to the rails /public folder
<bobthecow> i've got one like that.
<jmont> sweet
<bobthecow> i put the nanoc site in rails root /static
<bobthecow> and configure nanoc to compile to ../public
<jmont> great, that sounds like a plan
<jmont> thanks guys!
<bobthecow> alternatively, if you want something cleaner, you could rewrite your app to move anything that's not in /app/ to be there, then mount your app in a subdirectory using nginx or something.
jmont has quit [Ping timeout: 245 seconds]
bobthecow has quit [Remote host closed the connection]
bobthecow has joined #nanoc
bobthecow has joined #nanoc
bobthecow has quit [Remote host closed the connection]
bobthecow has joined #nanoc
bobthecow has quit [Changing host]
bobthecow has joined #nanoc
bobthecow has quit [Remote host closed the connection]
bobthecow has joined #nanoc
bobthecow has joined #nanoc
Guest97723 has quit [*.net *.split]
guardian has quit [*.net *.split]
stbuehler has quit [*.net *.split]
musicmatze has quit [*.net *.split]
terinjokes has quit [*.net *.split]
VitamineD has quit [*.net *.split]
matjas has quit [*.net *.split]
bobthecow has quit [*.net *.split]
_rgn has quit [*.net *.split]
jachymko has quit [*.net *.split]
koan has quit [*.net *.split]
yogsototh has quit [*.net *.split]
gkarekinian has quit [*.net *.split]
dbast_ has quit [*.net *.split]
tbm has quit [*.net *.split]
musicmatze has joined #nanoc
guardian has joined #nanoc
tbm has joined #nanoc
dbast_ has joined #nanoc
jachymko has joined #nanoc
yogsototh has joined #nanoc
stbuehler has joined #nanoc
terinjokes has joined #nanoc
matjas has joined #nanoc
gkarekinian has joined #nanoc
VitamineD has joined #nanoc
koan has joined #nanoc
_rgn has joined #nanoc
bobthecow has joined #nanoc
stbuehler is now known as Guest68804