Skip to content

Commit

Permalink
fixed start examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 27, 2012
1 parent ecfb330 commit 26740f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojolicious.pm
Expand Up @@ -608,11 +608,12 @@ Template specific helper collection.
=head2 C<start>
$app->start;
$app->start('daemon');
$app->start(@ARGV);
Start the command line interface for your application with
L<Mojolicious::Commands/"start">.
# Always start daemon and ignore @ARGV
$app->start('daemon', '-l', 'http://*:8080');
=head2 C<startup>
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Commands.pm
Expand Up @@ -337,6 +337,7 @@ disabled with the C<MOJO_NO_DETECT> environment variable.
Start the command line interface.
# Always start daemon and ignore @ARGV
Mojolicious::Commands->start('daemon', '-l', 'http://*:8080');
=head2 C<start_app>
Expand All @@ -346,6 +347,7 @@ Start the command line interface.
Load application and start the command line interface for it.
# Always start daemon for application and ignore @ARGV
Mojolicious::Commands->start_app('MyApp', 'daemon', '-l', 'http://*:8080');
=head1 SEE ALSO
Expand Down

0 comments on commit 26740f6

Please sign in to comment.