source: bookmarks/trunk/start @ 93

Last change on this file since 93 was 93, checked in by peter, 9 years ago

changed the start script to a Perl script using Plack::Runner, to prepare for allowing setting the port and other settings in the config

  • Property svn:executable set to *
File size: 406 bytes
Line 
1#!/usr/bin/perl -w
2use strict;
3
4use FindBin;
5use lib "$FindBin::RealBin/lib";
6
7use Plack::Runner;
8use BookmarksApp;
9
10my $CONFIG_FILE = shift || 'conf.yml';
11my $app = BookmarksApp->new({ config_file => $CONFIG_FILE })->to_app;
12
13my $runner = Plack::Runner->new(server => 'Starman');
14$runner->parse_options(qw{--listen :5000 --daemonize --pid pid --error-log errors --access-log access});
15$runner->run($app);
Note: See TracBrowser for help on using the repository browser.