lrrr - Little Restart Runner (Really)
version v0.0.3
lrrr [--watch|-w <dir[,dir...]> --backend|-b]... <command> lrrr --help|-h
This program will watch one or more directories and re-run the given command when the contents of the files in those directories changes.
This program was heavily copied and only slightly modified from Mojo::Server::Morbo. This program is useful when working in an environment that can't use morbo (a non-Mojolicious program, or a PSGI Mojolicious server).
morbo
This program uses Mojo::Server::Morbo::Backend classes to do the heavy lifting. The default is Mojo::Server::Morbo::Backend::Poll. Choose a specific one by setting MOJO_MORBO_BACKEND.
MOJO_MORBO_BACKEND
-w
--watch
A directory or directories to watch, separated by commas. Defaults to the first argument (if it's a path to a file) and the lib and templates directories in the current directory.
lib
templates
-b
--backend
Choose a specific backend for watching file changes. The default is Poll (Mojo::Server::Morbo::Backend::Poll). Takes precedence over the MOJO_MORBO_BACKEND environment variable.
Poll
Choose a specific backend for watching file changes. The default is Poll (Mojo::Server::Morbo::Backend::Poll).
MORBO_VERBOSE
If true, will write which files were changed to STDOUT when restarting.
Mojo::Server::Morbo
(© 2019) Sebastian Riedel and the Mojolicious developers (©) Grant Street Group
Grant Street Group <developers@grantstreet.com>
This software is Copyright (c) 2019 by Grant Street Group.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install App::lrrr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::lrrr
CPAN shell
perl -MCPAN -e shell install App::lrrr
For more information on module installation, please visit the detailed CPAN module installation guide.