Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
Set by moderator on 31 May 2018.
01:57 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
SmokeMachine hi! Im having troubles with cro... when I access localhost it works, but it doesn't work when I access 127.0.0.1... 03:39
04:02 sena_kun joined 08:34 stmuk joined 08:44 sena_kun joined
jnthn SmokeMachine: What does your Cro::HTTP::Server call look like? 12:44
I'm guessing localhost results to an IPv6 address or something
SmokeMachine I just stubbed a http server and only changed the Router.pm6 file... 12:46
jnthn Ah, the default host is localhost 12:47
You can change it by passing host => '127.0.0.1' or host => '0.0.0.0'
Or however you wish :) 12:48
SmokeMachine I tried using `MY_SERVICE_HOST=0.0.0.0 cro run` and didn’t run ether... 12:52
jnthn Ah, but `cro run` itself injects that env var too, I guess as localhost 12:54
And so its one will take precedence
jnthn wonders what best to do about that
SmokeMachine :( 12:55
jnthn Of course you an just run the service.p6 with the env vars set :)
*can
I'd figured localhost was a decent default for development time, though, and `cro run` isn't meant to be used for deployment 12:56
SmokeMachine But my biggest problem (I don’t know if it’s related) is that I couldn’t connect to my cro service with node-fetch (using localhost) 12:58
I don’t know if it’s cro’s or node-fetch’s fault 13:07
14:01 titsuki joined 18:19 lizmat joined 18:56 lizmat joined 20:36 lizmat joined