Changeset 102 in bookmarks for trunk/start
- Timestamp:
- 07/01/15 16:28:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/start
r96 r102 9 9 use Plack::Runner; 10 10 use BookmarksApp; 11 use File::Spec::Functions qw{catfile}; 11 12 12 13 GetOptions( … … 19 20 my $app = BookmarksApp->new({ config => $config })->to_app; 20 21 21 my $listen = ':' . ($config->{port} || 5000); 22 my $server_root = $config->{server_root} || '.'; 23 my $listen = ':' . ($config->{port} || 5000); 24 my $access_log = catfile($server_root, 'access'); 25 my $error_log = catfile($server_root, 'errors'); 26 my $pid_file = catfile($server_root, 'pid'); 22 27 23 28 my $runner = Plack::Runner->new(server => 'Starman'); 24 $runner->parse_options(qw{--listen}, $listen, qw{--daemonize --pid pid --error-log errors --access-log access}); 29 $runner->parse_options( 30 '--daemonize', 31 '--listen', $listen, 32 '--pid', $pid_file, 33 '--error-log', $error_log, 34 '--access-log', $access_log, 35 ); 25 36 $runner->run($app);
Note: See TracChangeset
for help on using the changeset viewer.