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
RevLine 
[93]1#!/usr/bin/perl -w
2use strict;
[54]3
[93]4use FindBin;
5use lib "$FindBin::RealBin/lib";
[65]6
[93]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.