Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fdf70e51b4
Fetching contributors…

Cannot retrieve contributors at this time

executable file 73 lines (45 sloc) 1.426 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin::libs;
use FindBin::libs qw( base=extlib );
use Doumeki::CLI::Server;

Doumeki::CLI::Server->new_with_options->run();

__END__

=head1 NAME

doumeki-server - Doumeki web server

=head1 SYNOPSIS

doumeki-server.pl --host=HOST --port=PORT [--configfile CONFIG.yaml] [--debug]

--host HOST
-h HOST
specifies the host address it binds to (e.g. 127.0.0.1). Default to any address.

--port PORT
-p PORT
specifies the port number it listens to. Default: 10808

--configfile CONFIG.yaml
-c CONFIG.yaml
specifies configuration file. see also "example/config.yaml".

--debug
-d
set log level to debug.

=head1 EXAMPLE

env DOUMEKI_ACCESS_LOG=/var/log/doumeki/doumeki.acc \
doumeki-server --configfile /path/to/config.yaml --debug

=head1 ENVIRONMENTAL VARIABLES

=over 4

=item DOUMEKI_DEBUG

set log level to debug if this variable defined. same as --debug option.

=item DOUMEKI_ACCESS_LOG

specifies filename of access log.
output to STDOUT if you don't specified this variable.

=item DOUMEKI_ERROR_LOG

specifies filename of error log.
output to STDOUT if you don't specified this variable.

=back

=head1 AUTHOR

HIROSE Masaaki E<lt>hirose31 _at_ gmail.comE<gt>

=head1 REPOSITORY

L<http://github.com/hirose31/doumeki/tree/master>

git clone git://github.com/hirose31/doumeki.git

patches and collaborators are welcome.

=cut
Something went wrong with that request. Please try again.