Skip to content

Commit

Permalink
moved deployment example into a different section of the cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 21, 2014
1 parent ff5997a commit 47d6eb2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -73,16 +73,6 @@ L<Mojo::IOLoop/"timer">.

app->start;

To combine multiple applications into one and deploy them together, you can
use the plugin L<Mojolicious::Plugin::Mount>.

use Mojolicious::Lite;

plugin Mount => {'test1.example.com' => '/home/sri/myapp1.pl'};
plugin Mount => {'test2.example.com' => '/home/sri/myapp2.pl'};

app->start;

=head2 Morbo

After reading the L<Mojolicious::Lite> tutorial, you should already be
Expand Down Expand Up @@ -325,6 +315,16 @@ with this little L<Mojo::Server> based mock server you can just embed them.
say $app->config->{secret_identity};
say $app->dumper({just => 'a helper test'});

The plugin L<Mojolicious::Plugin::Mount> uses this functionality to allow you
to combine multiple applications into one and deploy them together.

use Mojolicious::Lite;

plugin Mount => {'test1.example.com' => '/home/sri/myapp1.pl'};
plugin Mount => {'test2.example.com' => '/home/sri/myapp2.pl'};

app->start;

=head2 Web server embedding

You can also use L<Mojo::IOLoop/"one_tick"> to embed the built-in web server
Expand Down

0 comments on commit 47d6eb2

Please sign in to comment.