Helpful reading–

# If you're not reasonably up to date- sudo cpanm Plack Catalyst Catalyst::Devel

Full steps for testing two Cat apps in one server

# *nix centric. mkdir cattest cd cattest catalyst.pl OneFish catalyst.pl TwoFish vi^W emacs a-one-an-a-two-a.psgi # But I keed!

a-one-an-a-two-a.psgi

#!/usr/bin/env perl use strict; use Plack::Builder; use FindBin; use lib "$FindBin::Bin/OneFish/lib", "$FindBin::Bin/TwoFish/lib"; use OneFish; use TwoFish; my $app = builder { mount "/two" => TwoFish->psgi_app(@_); mount "/" => OneFish->psgi_app(@_); # Root needs to be last or it'll eat others. };

Run, dog, run

env CATALYST_DEBUG=0 plackup a-one-an-a-two-a.psgi HTTP::Server::PSGI: Accepting connections at http://0:5000/

Visit http://localhost:5000/ (or whatever name/ip your box prefers) and http://localhost:5000/two/ and don't forget to tip your servers.

Caveat: this might lead to entangling or making cross-dependent coding choices which would be bad. Make an effort to keep things compartimental. Abstract and separate commonality like sessions/auth. If each app can't run alone after you're done, you might as well have rolled them all into one to start.


In reply to Re: Combine Multiple Catalyst Applications by Your Mother
in thread Combine Multiple Catalyst Applications by temporal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.