Changeset 93 in bookmarks
- Timestamp:
- 06/05/15 23:16:38 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/start
r70 r93 1 #!/bin/sh 1 #!/usr/bin/perl -w 2 use strict; 2 3 3 export PERL5LIB=./lib 4 export CONFIG_FILE=${1:-"conf.yml"} 4 use FindBin; 5 use lib "$FindBin::RealBin/lib"; 5 6 6 starman --listen :5000 --daemonize --pid pid --error-log errors --access-log access 7 use Plack::Runner; 8 use BookmarksApp; 9 10 my $CONFIG_FILE = shift || 'conf.yml'; 11 my $app = BookmarksApp->new({ config_file => $CONFIG_FILE })->to_app; 12 13 my $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 TracChangeset
for help on using the changeset viewer.