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
<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 :)
<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?
<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]