I would like to mount a Mojolicious app with others using plackup or starman.
The docs here here describe how to use a single application, but not how I could have a Mojolicious app coexist with other Catalyst- or Dancer-based ones behind the same plackup/starman instance.
I'd like to do something like
builder {
enable 'Debug';
enable 'Session', store => 'File';
mount '/prospero' => Prospero->psgi_app;
mount "/vizela" => 'Vizela/vizela.pl'
#-------------------------------------------------
# standard app
#-------------------------------------------------
mount '/', $app;
};
where Prospero is a catalyst app, and vizela is a mojolicious one, but there's no hint in this direction in the documentation - or maybe I haven't found it.
And advice on how to get this done?
Unfortunately deploying behind nginx or apache is not an option, and different servers aren't either, because of the need to have one source for all data (cross-server limitations).
Thanks
AFAIK all a psgi app consists of is a coderef.
So, it's just the app->start bit you want.
It's almost demonstrated here: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Plack-middleware