Skip to content

Commit

Permalink
The script move/rename should be above the script in Growing
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Nov 24, 2014
1 parent 2e30138 commit 00bcfe1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -603,7 +603,14 @@ applications can use nested routes they have no need for C<group> blocks.

=head2 Simplified application script

C<myapp.pl> itself can now be turned into a simplified application script to
C<myapp.pl> can be moved into a C<script> directory and renamed to C<my_app> to
follow the CPAN standard.

$ mkdir script
$ mv myapp.pl script/my_app
$ chmod 744 script/my_app

The script itself can now be turned into a simplified application script to
allow running tests again.

#!/usr/bin/env perl
Expand All @@ -617,13 +624,6 @@ allow running tests again.
require Mojolicious::Commands;
Mojolicious::Commands->start_app('MyApp');

Move the file into a C<script> directory and rename it to C<my_app> to follow
the CPAN standard.

$ mkdir script
$ mv myapp.pl script/my_app
$ chmod 744 script/my_app

The resulting directory structure of our hybrid application should be looking
like this.

Expand Down

0 comments on commit 00bcfe1

Please sign in to comment.