mrest - Web::MREST server startup script
Contents
Debugging Options
You can include an "--early-debug" option on the command line, with the name of a file in which
Web::MREST will capture "early" log messages -- i.e. all log messages generated before the "official"
MREST log file (i.e. the one defined in the site parameters) is known.
Description
Run this script from the bash prompt to start the server.
Functions
Main
perl v5.36.0 2022-09-21 MREST(1p)
Name
mrest - Web::MREST server startup script
Passing Options To Plack
This script starts the server by instantiates a Plack::Runner object and calling its "run" method. Before
doing that, it calls the "parse_options" method with @ARGV as its argument. However, the script does so
after parsing its own options. Options intended to be parsed by Plack::Runner should be placed at the end
of the command line, preceded by "--".
Synopsis
Possible invocations (any options after "--" are parsed by Plack::Runner: basically, they can be anything
accepted by "plackup":
$ mrest --distro My-Distro --module My::Module
$ mrest -d My::Distro -m My::Module
$ mrest --distro My-Distro --module My::Module --sitedir /etc/my-module
$ mrest -d My::Distro -m My::Module -s /etc/my-module
$ mrest -- --server Starman
$ mrest --help
