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
|
Rev | Line | |
---|
[93] | 1 | #!/usr/bin/perl -w |
---|
| 2 | use strict; |
---|
[54] | 3 | |
---|
[93] | 4 | use FindBin; |
---|
| 5 | use lib "$FindBin::RealBin/lib"; |
---|
[65] | 6 | |
---|
[93] | 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
TracBrowser
for help on using the repository browser.