Skip to content

Commit

Permalink
added --mode option to Morbo
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 7, 2013
1 parent 1beb4fd commit 2acef0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

4.18 2013-07-07
- Added --mode option to Morbo.

4.17 2013-07-04
- Updated jQuery to version 2.0.3.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Commands.pm
Expand Up @@ -11,8 +11,8 @@ These options are available for all commands:
-h, --help Get more information on a specific command.
--home <path> Path to your applications home directory, defaults to
the value of MOJO_HOME or auto detection.
-m, --mode <name> Run mode of your application, defaults to the value of
MOJO_MODE/PLACK_ENV or "development".
-m, --mode <name> Operating mode for your application, defaults to the
value of MOJO_MODE/PLACK_ENV or "development".
See '$0 help COMMAND' for more information on a specific command.
EOF
Expand Down
5 changes: 5 additions & 0 deletions script/morbo
Expand Up @@ -11,6 +11,7 @@ use Getopt::Long qw(GetOptions :config no_auto_abbrev no_ignore_case);
GetOptions(
'h|help' => \my $help,
'l|listen=s' => \my @listen,
'm|mode=s' => sub { $ENV{MOJO_MODE} = $_[1] },
'v|verbose' => sub { $ENV{MORBO_VERBOSE} = 1 },
'w|watch=s' => \my @watch
);
Expand All @@ -20,13 +21,17 @@ usage: $0 [OPTIONS] [APPLICATION]
morbo script/myapp
morbo myapp.pl
morbo -m production -l https://*:443
morbo -w /usr/local/lib -w public myapp.pl
These options are available:
-h, --help Show this message.
-l, --listen <location> Set one or more locations you want to listen
on, defaults to the value of MOJO_LISTEN or
"http://*:3000".
-m, --mode <name> Operating mode for your application, defaults
to the value of MOJO_MODE/PLACK_ENV or
"development".
-v, --verbose Print details about what files changed to
STDOUT.
-w, --watch <directory/file> Set one or more directories and files to
Expand Down

0 comments on commit 2acef0b

Please sign in to comment.