Hello, I'm looking for a means of differentiation which will work regardless of >> whether the application is run via Mojolicious::Server::Morbo or >> Mojolicious::Server::Daemon (or any other server for that matter). >> > the application is loaded there is a server, even if it's just a mock > server. > > > http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Application-embedding > <http://www.google.com/url?q=http%3A%2F%2Fmojolicio.us%2Fperldoc%2FMojolicious%2FGuides%2FCookbook%23Application-embedding&sa=D&sntz=1&usg=AFQjCNFBodzao4uBW-i6ar26Bc1Nl7Nrjw> > > This is how all commands work internally. >
I'm aware that a server gets set up in any case but would still like to handle the case of the application running a server explicitly differently from when one is run implicitly. Am I right in that there's no way to determine from within startup() what type (i.e., class) of server will run it? Of course I could resort to, e.g., intercepting @ARGV in the start script and pass anything I've learned from that on to the application some way or other, but I wouldn't file that solution under “clean”. Marco -- 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 http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
