Skip to content

Commit

Permalink
link to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 19, 2016
1 parent 8710142 commit 3864361
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -14,7 +14,7 @@ applications.
=head2 Hello World

A simple Hello World application can look like this, L<strict>, L<warnings>,
L<utf8> and Perl 5.10 L<features|feature> are automatically enabled, and a few
L<utf8> and Perl 5.10 L<features|feature> are automatically enabled and a few
L<functions|Mojolicious::Lite/"FUNCTIONS"> imported, when you use
L<Mojolicious::Lite>, turning your script into a full featured web application.

Expand All @@ -28,15 +28,16 @@ L<Mojolicious::Lite>, turning your script into a full featured web application.

app->start;

There is also a helper command to generate a small example application.
With L<Mojolicious::Command::generate::lite_app> there is also a helper command
to generate a small example application.

$ mojo generate lite_app myapp.pl

=head2 Commands

All the normal L<Mojolicious::Commands> are available from the command line.
Note that CGI and L<PSGI> environments can usually be auto detected and will
just work without commands.
Many different L<commands|Mojolicious::Commands/"COMMANDS"> are automatically
available from the command line. CGI and L<PSGI> environments can usually be
auto-detected and will just work without commands.

$ ./myapp.pl daemon
Server available at http://127.0.0.1:3000
Expand All @@ -54,10 +55,10 @@ just work without commands.
...List of available commands (or automatically detected environment)...

A call to L<Mojolicious/"start"> (C<app-E<gt>start>), which starts the command
system, should usually be the last expression in your application, because the
system, should usually be the last expression in your application, because its
return value can be significant.

# Start the command system and use @ARGV to pick a command
# Use @ARGV to pick a command
app->start;

# Start the "daemon" command
Expand Down

0 comments on commit 3864361

Please sign in to comment.