|
Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/ Set by moderator on 8 May 2018. |
|||
|
01:58
ilbot3 joined
|
|||
| moderator | Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/ | ||
|
13:04
FROGGS joined
22:22
lancew joined
|
|||
| lancew | Hi all, just trying to get my new Cro based app to serve on server. Struggling a little with how to get it to serve on 0.0.0.0:80 rather than localhost:20000 My app/service is called MYJUDO, so have been trying things like "MYJUDO_HOST=0.0.0.0 cro run" but seems to stay on localhost, thoughts? | 22:25 | |
| I have been able to hard code the host and port inside my service.p6, but that feels like a hack. | |||
| jnthn | `cro run` is intended for development time, not deployment time. | 22:26 | |
| lancew | ok... what is the preferred production invocation? | ||
| jnthn | Depends how you're deploying. All mine are in docker containers, and the env vars are just set via the Dockerfile. | 22:27 | |
| lancew | I see. | ||
| jnthn | But if not doing that, then some kind of shell script that just sets the env vars and invokes perl6 service.p6 or so | ||
| lancew | Was going to try that approach next. :-) | ||
| WHich reminds me, the docs seemed to say that a Dockerfile would be created with "cro stub", but did not seem to happen for me. | 22:28 | ||
| jnthn | Hm, how new is your Cro? | 22:29 | |
| (That feature went in probably during the last month or so) | |||
| lancew | Pretty recent, I created it on the weekend (I think) | 22:30 | |
| jnthn | Hm, odd | ||
| lancew | the "perl6 service.p6" approach has worked :-) | ||
| jnthn | See cro.services/docs/docker-deployment...Dockerfile for what it'd create though | ||
| lancew | Docker is next on the todo list. :-) | 22:32 | |
| But nice to have it running on my "production" server. :-) | |||
| ...and by "production" I mean manually started on a server. | 22:33 | ||