Skip to content

Commit

Permalink
improved mode section in tutorial a little
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 27, 2012
1 parent 7c21e3a commit f4d77f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/Mojo/Headers.pm
Expand Up @@ -348,6 +348,7 @@ Shortcut for the C<Expires> header.
=head2 C<from_hash>
$headers = $headers->from_hash({'Content-Type' => 'text/html'});
$headers = $headers->from_hash({});
Parse headers from a hash reference.
Expand Down
10 changes: 7 additions & 3 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -890,10 +890,14 @@ change the application log level directly in your test files.
=head2 Mode
To disable debug messages later in a production setup you can change the
L<Mojolicious> mode, default will be C<development>.
To disable debug messages later in a production setup, you can change the
L<Mojolicious> operating mode with command line options or the C<MOJO_MODE>
environment variable, the default will usually be C<development>.
$ ./myapp.pl -m production
$ ./myapp.pl daemon -m production
This also affects many other aspects of the framework, such as mode specific
C<exception> and C<not_found> templates.
=head2 Logging
Expand Down

0 comments on commit f4d77f0

Please sign in to comment.