Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use more precise script paths in examples
  • Loading branch information
kraih committed Oct 7, 2014
1 parent b9c0dd1 commit d456e68
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -160,12 +160,12 @@ To start applications with it you can use the L<hypnotoad> script, for
L<Mojolicious> and L<Mojolicious::Lite> applications it will default to
C<production> mode.
$ hypnotoad myapp.pl
$ hypnotoad ./myapp.pl
Server available at http://127.0.0.1:8080.
You can run the same command again for automatic hot deployment.
$ hypnotoad myapp.pl
$ hypnotoad ./myapp.pl
Starting hot deployment for Hypnotoad server 31841.
This second invocation will load the application again, detect the process id
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Morbo.pm
Expand Up @@ -127,7 +127,7 @@ applications.
To start applications with it you can use the L<morbo> script.
$ morbo myapp.pl
$ morbo ./myapp.pl
Server available at http://127.0.0.1:3000.
For better scalability (epoll, kqueue) and to provide IPv6, SOCKS5 as well as
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -85,7 +85,7 @@ It is basically a restarter that forks a new L<Mojo::Server::Daemon> web
server whenever a file in your project changes, and should therefore only be
used during development.

$ morbo script/myapp
$ morbo ./script/myapp
Server available at http://127.0.0.1:3000.

=head2 Hypnotoad
Expand All @@ -105,7 +105,7 @@ It is based on the L<Mojo::Server::Prefork> web server, which adds preforking
to L<Mojo::Server::Daemon>, but optimized specifically for production
environments out of the box.

$ hypnotoad script/myapp
$ hypnotoad ./script/myapp
Server available at http://127.0.0.1:8080.

It automatically sets the operating mode to C<production> and you can tweak
Expand Down Expand Up @@ -136,7 +136,7 @@ software upgrades (hot deployment). That means you can upgrade L<Mojolicious>,
Perl or even system libraries at runtime without ever stopping the server or
losing a single incoming connection, just by running the command above again.

$ hypnotoad script/myapp
$ hypnotoad ./script/myapp
Starting hot deployment for Hypnotoad server 31841.

You might also want to enable proxy support if you're using Hypnotoad behind a
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -197,7 +197,7 @@ This will be the foundation for our login manager example application.
The built-in development web server makes working on your application a lot of
fun thanks to automatic reloading.

$ morbo myapp.pl
$ morbo ./myapp.pl
Server available at http://127.0.0.1:3000.

Just save your changes and they will be automatically in effect the next time
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Lite.pm
Expand Up @@ -144,7 +144,7 @@ Your application will automatically reload itself if you start it with the
C<morbo> development web server, so you don't have to restart the server after
every change.
$ morbo myapp.pl
$ morbo ./myapp.pl
Server available at http://127.0.0.1:3000.
For more information about how to deploy your application see also
Expand Down
6 changes: 3 additions & 3 deletions script/hypnotoad
Expand Up @@ -33,9 +33,9 @@ hypnotoad - Hypnotoad HTTP and WebSocket server
Usage: hypnotoad [OPTIONS] [APPLICATION]
hypnotoad script/myapp
hypnotoad myapp.pl
hypnotoad -f myapp.pl
hypnotoad ./script/myapp
hypnotoad ./myapp.pl
hypnotoad -f ./myapp.pl
Options:
-f, --foreground Keep manager process in foreground.
Expand Down
10 changes: 5 additions & 5 deletions script/morbo
Expand Up @@ -37,11 +37,11 @@ morbo - Morbo HTTP and WebSocket development server
Usage: morbo [OPTIONS] [APPLICATION]
morbo script/myapp
morbo myapp.pl
morbo -m production -l https://*:443 -l http://[::]:3000 myapp.pl
morbo -l 'https://*:443?cert=./server.crt&key=./server.key'
morbo -w /usr/local/lib -w public myapp.pl
morbo ./script/myapp
morbo ./myapp.pl
morbo -m production -l https://*:443 -l http://[::]:3000 ./myapp.pl
morbo -l 'https://*:443?cert=./server.crt&key=./server.key' ./myapp.pl
morbo -w /usr/local/lib -w public ./myapp.pl
Options:
-h, --help Show this message.
Expand Down

0 comments on commit d456e68

Please sign in to comment.