Heya! Just to add, if you're running Mojo under Docker for development, you're likely better off using Morbo and bind-mount your code into the running container to take advantage of Morbo's auto-refresh. For Mojo under production Docker, I usually prefer to run it as a standard Plack app, via Starman/Starlet; see http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#PSGI-Plack
Cheers, Zak On 08/03/2017 06:55 AM, Scott Wiersdorf wrote: > Running hypnotoad under Docker would probably be considered a Docker > anti-pattern, since a Linux container is just a single Linux process. > In a Docker world you would run a Mojo::Server::Daemon (`myapp > daemon`) and let some Docker-level scheduler manage the individual > instances (e.g., Kubernetes, Mesos, etc.), managing the scaling and > being responsible for starting more instances when they die—which is > roughly the same area of concern as hypnotoad. > > If you don't have access to a container orchestration system and must > run hypnotoad in a container, look at Mojo::Server::Hypnotoad and > set HYPNOTOAD_FOREGROUND as Dan recommended. > > Scott > > On Wednesday, August 2, 2017 at 2:55:29 PM UTC-6, Daniel Suen wrote: > > I would like to run hypnotoad programmatically under docker, I > know the command line has a -f switch but I don't see it for the > Mojo::Server::Hypnotoad. Does anyone know how to do this? Any help > is appreciated. Thanks. > > Daniel > > -- > You received this message because you are subscribed to the Google > Groups "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. -- Zak B. Elep || zakame.net 1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D F57D 3713 E782 E2B2 D0DA A5F0 E14D EE0C FFC3 A672 -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
