Skip to content

Commit

Permalink
added Morbo section to the deployment cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 29, 2012
1 parent 79746fa commit f0852de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.47 2012-01-29 00:00:00
2.47 2012-01-30 00:00:00
- Added EXPERIMENTAL drain event to Mojo::Content.
- Added EXPERIMENTAL drain event to Mojo::Transaction::WebSocket.
- Added pdf MIME type. (bfaist)
Expand Down
26 changes: 21 additions & 5 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -14,9 +14,10 @@ different platforms.

=head2 Built-in server

L<Mojolicious> contains a very portable HTTP 1.1 compliant web server. It is
usually used during development but is solid and fast enough for small to mid
sized applications.
L<Mojolicious> contains a very portable non-blocking I/O HTTP 1.1 and
WebSocket server with L<Mojo::Server::Daemon>. It is usually used during
development and in the construction of more advanced web servers, but is
solid and fast enough for small to mid sized applications.

$ ./script/myapp daemon
Server available at http://127.0.0.1:3000.
Expand All @@ -35,6 +36,21 @@ Another huge advantage is that it supports TLS and WebSockets out of the box.
A development certificate for testing purposes is built right in, so it just
works.

=head2 Morbo

After reading the L<Mojolicious::Lite> tutorial, you should already be
familiar with L<Mojo::Server::Morbo>.

Mojo::Server::Morbo
`- Mojo::Server::Daemon

It is basically a restarter that forks a new L<Mojo::Server::Daemon> web
server whenever a file in your project changes, and should therefore only be
used during development.

$ morbo script/myapp
Server available at http://127.0.0.1:3000.

=head2 Hypnotoad

For bigger applications L<Mojolicious> contains the UNIX optimized preforking
Expand All @@ -47,8 +63,8 @@ of multiple cpu cores and copy-on-write.
|- Mojo::Server::Daemon [3]
`- Mojo::Server::Daemon [4]

It is based on the normal built-in web server but optimized specifically for
production environments out of the box.
It is also based on the L<Mojo::Server::Daemon> web server, but optimized
specifically for production environments out of the box.

$ hypnotoad script/myapp
Server available at http://127.0.0.1:8080.
Expand Down

0 comments on commit f0852de

Please sign in to comment.