Run an app:
MOJO_USERAGENT_DEBUG=1 perl -I lib ~/path/to/morbo --verbose --watch lib --watch local bin/app.pl
View existing routes:
perl -I lib bin/app.pl routes
Find the code that defines the routes:
grep -r '$r->get' .
grep -r '$r->post' .
perl -I lib bin/app.pl dbic_migration --action=install
Write a script that uses the app config, etc:
See Mojolicious::Command
Debug Test::Mojo:
print $t->tx->res->body; # See also guide to debugging
Catch unexpected exceptions:
Dump out 2nd-level routes:
my @routes = sort map { $_->to_string } map { @{ $_->children } }
grep { $_->name eq 'distro' || $_->name eq 'candidates' }
@{ $t->app->routes->children };