Fork me on GitHub
#hoplon
<
2016-09-15
>
zilvinask10:09:24

Hey guys! Is there a way I can access Ring session from Castra fn on the backend? For example - i have user in ring session (was added there earlier), which i want to access from within castra call.

zilvinask10:09:26

hmm it just started to work, like I’ve expected - all the thing i add to the ring session i see in castra.core/session

zilvinask10:09:10

not sure what was wrong, maybe ive messed up something with ring handlers

onetom13:09:31

maybe your reload logic doesnt work well...

onetom13:09:15

are you using ring's built in reload functionality?

zilvinask13:09:46

yeah thats possible, the problem was when i was playing around with middleware wrappers. I use pandeiro/boot-http serve task with :reload true, not sure how it works

onetom16:09:05

@zilvinask yup, the problem with that is that your next request is still served by the previous version of the code. the new code gets reloaded only after the request has been already served, which is extremely misleading of course.

smw21:09:44

Hey, just fyi … I get different weird behavior on http://hoplon.io with both chrome and safari on mac

smw21:09:33

Seems to get a 404 trying to load jquery.min.map in the console

smw21:09:46

possibly behavior is due to addblocker blocking google analytics?

smw21:09:50

That’s safari.

smw21:09:41

Chrome complains because it looks like you’re trying to load a font from a server with an unqualified name?

flyboarder21:09:04

I dont seem to have this problem...

flyboarder21:09:54

Vanilla Safari

smw22:09:52

Disabled addblocker and flash blocker, still get same behavior

smw22:09:57

looks like if I cancel loading, it works

flyboarder22:09:00

Seems main.css has a typo: url("//fonts/opensans/OpenSans-Regular.woff")

flyboarder22:09:31

everything else doesn’t have the leading /

flyboarder22:09:50

not sure about the js map tho

alandipert22:09:19

source is at https://github.com/tailrecursion/hoplon.io if anyone has suggestions for improving/PRs