These are chat archives for jescalan/roots

12th
Apr 2016
Gristel Periwinkle
@gristel
Apr 12 2016 08:04
Has anybody already played around with https://github.com/jenius/axis-www ?
Dominic Monroe
@SevereOverfl0w
Apr 12 2016 09:01
@gristel Axis is pretty cool, I used it a lot, good piece of kit
Gristel Periwinkle
@gristel
Apr 12 2016 09:05
Yes I like it a lot.. I’m messing around with the source code of their website a bit, because I like the concept of dynamic module loading as they do. So far it’s working peachy, except I can’t get decent syntax highlighting with highlight.js (yet) :-)
Gristel Periwinkle
@gristel
Apr 12 2016 09:55

Hmm .. including an .md file with some

console.log(“test”)

Doesn’t seem to do the trick

BrandonMathis
@BrandonMathis
Apr 12 2016 18:39
Can I configure roots to proxy ajax requests to port 3000 on my machine?
Dominic Monroe
@SevereOverfl0w
Apr 12 2016 19:03
@BrandonMathis How do you mean?
@gristel You'll need to check and make sure that: highlight.js is loading, it's css is loading, it's parsing the code block, etc. Lots of places to debug
BrandonMathis
@BrandonMathis
Apr 12 2016 19:23
@SevereOverfl0w I have an API running on my machine at port 3000 and I want ajax requests that my roots app make to be forwarded to that port. Make sense?
Dominic Monroe
@SevereOverfl0w
Apr 12 2016 19:26
so, why not just connect to it directly from your js?
Jeff Escalante
@jescalan
Apr 12 2016 20:28
@BrandonMathis any reason you can't just request localhost:3000 with your ajax url?
you could also set a base url local and use this
that way you can change it between app.coffee and app.production.coffee