The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

  RunApp::Simple - RunApp in a simple way;

SYNOPSIS

  my $param = YAML::LoadFile('config.yaml');
  RunApp::Simple->new(%$param)->run();

DESCRIPTION

This module provides an simple interface of RunApp::* modules. It provides a script "runapp" which reads "config.yaml" from current working directory and then start-up your application according to what is configured in "config.yaml".

Object Interface

RunApp::Simple provide an object-origented interface to initialize RunApp::* objects. It has following methods:

new(%param)

The new() method is the constructor of this object. You'll have to provide sufficient values in the %param parameter hash. Following keys are required:

mode

Possible values: apache_perl , apache_cgi. Default: apache_cgi

apxs

Path to your "apxs" executable. Default: /usr/sbin/apxs.

config_block

A block of text to put in your httpd.conf.

hostname

Hostname are detected automatically, but you may also specify it here.

port

Port number for your applcation. Default: 12345.

run()

Run your application.

SEE ALSO

RunApp

COPYRIGHT

Copyright 2005 by Kang-min Liu <gugod@gugod.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>