Skip to content

Commit

Permalink
better Hypnotoad description
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 6, 2012
1 parent 39fc3b0 commit 4fdb70d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
6 changes: 1 addition & 5 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -507,15 +507,11 @@ Stop worker gracefully.
=head1 CONFIGURATION
Since the normal application configuration system is reused, you usually just
add a new section to your L<Mojolicious::Plugin::Config> or
L<Mojolicious::Config::JSONConfig> configuration files.
L<Mojo::Server::Hypnotoad> can be configured with the following setting.
# myapp.conf
{hypnotoad => {listen => ['http://*:3000'], workers => 10}};
L<Mojo::Server::Hypnotoad> can be configured with the following setting.
=head2 C<accepts>
accepts => 100
Expand Down
17 changes: 9 additions & 8 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -71,14 +71,7 @@ specifically for production environments out of the box.
$ hypnotoad script/myapp
Server available at http://127.0.0.1:8080.

Since the normal application configuration system is reused, you usually just
add a new section to your L<Mojolicious::Plugin::Config> or
L<Mojolicious::Config::JSONConfig> configuration files.

# myapp.conf
{hypnotoad => {listen => ['http://*:80'], workers => 10}};

Or change the application configuration directly.
You can tweak many configuration settings right from within your application.

use Mojolicious::Lite;

Expand All @@ -88,6 +81,14 @@ Or change the application configuration directly.

app->start;

Or add a C<hypnotoad> section to your L<Mojolicious::Plugin::Config> or
L<Mojolicious::Config::JSONConfig> configuration file.

# myapp.conf
{hypnotoad => {listen => ['http://*:80'], workers => 10}};

Or change the application configuration directly.

But one of its biggest advantages is the support for effortless zero downtime
software upgrades. That means you can upgrade L<Mojolicious>, Perl or even
system libraries at runtime without ever stopping the server or losing a
Expand Down

0 comments on commit 4fdb70d

Please sign in to comment.