Toadfarm::Manual::RunningToadfarm - Command line options
This manual goes through the command line options for toadfarm.
toadfarm
You can start the application by running:
$ toadfarm /path/to/toadfarm.conf;
See Toadfarm::Manual::Config for toadfarm.conf format.
toadfarm.conf
toadfarm understands these options:
-a <path> Custom application (other than toadfarm) -a <class> Custom application class -f, --foreground Keep manager process in foreground. -h, --help Show this message. --man Show manual --start Only start - no hot reload -s, --stop Stop server gracefully. -t, --test Test application and exit.
Default config file will be $HOME/.toadfarm/$app.conf, where $app is specified by "-a".
$HOME/.toadfarm/$app.conf
$app
toadfarm -a toadfarm == toadfarm $HOME/.toadfarm/toadfarm.conf"
When loading a class My::App, the config file be $HOME/.toadfarm/my-app.conf.
My::App
$HOME/.toadfarm/my-app.conf
Specifying a custom application disable all the Toadfarm features, but allow the custom app to gain the command line options from the toadfarm script. This allow the app to be started from crontab:
* * * * * /usr/local/bin/toadfarm -a My::App --start 1>/tmp/toadfarm.cron.log 2>&1
Look at https://github.com/jhthorsen/toadfarm/tree/master/etc for example resources which show how to start Toadfarm on ubuntu.
It is possible to start the server in foreground as well:
$ MOJO_CONFIG=myconfig.conf toadfarm prefork $ MOJO_CONFIG=myconfig.conf toadfarm daemon
Jan Henning Thorsen - jhthorsen@cpan.org
jhthorsen@cpan.org
To install Toadfarm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Toadfarm
CPAN shell
perl -MCPAN -e shell install Toadfarm
For more information on module installation, please visit the detailed CPAN module installation guide.