view release on metacpan or search on metacpan
0.002 2017-03-25T21:13+03:00
- Prevent blocking (use /dev/urandom instead of /dev/random)
- Add a script to change user password (/usr/bin/passwd lookalike)
0.001001 2015-03-08T16:54+02:00
- Call init at first request to allow non-delayed loading (e.g. starman --preload-app).
- Make "Invalid username" error message customizable
0.001 2015-03-01T14:30+02:00
- First stable release
- Add authentication cache
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Plack/Middleware/LemonLDAP/BasicAuth.pm view on Meta::CPAN
One application that supports HTTP BasicAuth for authentication is
L<OTRS|http://otrs.org>. It has a basic PSGI support so that you can run
it with L<Starman>.
starman -e 'enable "LemonLDAP::BasicAuth", portal => "http://auth.example.com"' app.psgi
If no user is logged in,
=head1 AUTHOR
view all matches for this distribution
view release on metacpan or search on metacpan
example.psgi view on Meta::CPAN
# With specific port
plackup -p 8080 example.psgi
# Production with Starman
starman example.psgi
=head1 TESTING
=head2 Browser Test
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Plack/Middleware/ReverseProxyPath.pm view on Meta::CPAN
use $req->base to redirect, set cookies and the like.
I find the term B<reverse proxy> leads to confusion, so I'll
use B<front-end> to refer to the reverse proxy (eg. squid) which
the client hits first, and B<back-end> to refer to the server
that runs your PSGI application (eg. starman).
Plack::Middleware::ReverseProxyPath adjusts SCRIPT_NAME and PATH_INFO
based on headers from a front-end so that it's inner app can pretend
there is no proxy there. This is useful when you aren't proxying and
entire server, but only a deeper path. In Apache terms:
view all matches for this distribution
view release on metacpan or search on metacpan
WebInterface->new()->run;
### start
starman ./bin/starter.pl
view all matches for this distribution
view release on metacpan or search on metacpan
lib/RPerl/Test/HashReference/program_02_bad_00.pl view on Meta::CPAN
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
# [[[ OPERATIONS ]]]
my integer_hashref $i_hash = { least_random => 17, fnord => 23, dont_panic => 42, enterprise => 1_701, starman => 2_112 }
view all matches for this distribution
view release on metacpan or search on metacpan
Debian_CPANTS.txt view on Meta::CPAN
"perlconsole", "perlconsole", "0.4", "1", "1"
"perlindex", "perlindex", "1.605", "1", "2"
"perlipq", "perlipq", "1.25", "0", "3"
"pmtools", "pmtools", "1.10", "0", "0"
"pperl", "PPerl", "0.25", "3", "7"
"starman", "Starman", "0.2010", "0", "0"
"twiggy", "Twiggy", "0.1010", "0", "0"
"w3c-linkchecker", "W3C-LinkChecker", "4.8", "2", "2"
"xacobeo", "Xacobeo", "0.13", "0", "1"
"ylastic-costagent", "App-Ylastic-CostAgent", "not-uploaded", "0", "0"
view all matches for this distribution
view release on metacpan or search on metacpan
Debian_CPANTS.txt view on Meta::CPAN
"perlconsole", "perlconsole", "0.4", "1", "1"
"perlindex", "perlindex", "1.605", "1", "2"
"perlipq", "perlipq", "1.25", "0", "3"
"pmtools", "pmtools", "1.10", "0", "0"
"pperl", "PPerl", "0.25", "3", "7"
"starman", "Starman", "0.2010", "0", "0"
"twiggy", "Twiggy", "0.1010", "0", "0"
"w3c-linkchecker", "W3C-LinkChecker", "4.8", "2", "2"
"xacobeo", "Xacobeo", "0.13", "0", "1"
"ylastic-costagent", "App-Ylastic-CostAgent", "not-uploaded", "0", "0"
view all matches for this distribution
view release on metacpan or search on metacpan
Debian_CPANTS.txt view on Meta::CPAN
"perlconsole", "perlconsole", "0.4", "1", "1"
"perlindex", "perlindex", "1.605", "1", "2"
"perlipq", "perlipq", "1.25", "0", "3"
"pmtools", "pmtools", "1.10", "0", "0"
"pperl", "PPerl", "0.25", "3", "7"
"starman", "Starman", "0.2010", "0", "0"
"twiggy", "Twiggy", "0.1010", "0", "0"
"w3c-linkchecker", "W3C-LinkChecker", "4.8", "2", "2"
"xacobeo", "Xacobeo", "0.13", "0", "1"
"ylastic-costagent", "App-Ylastic-CostAgent", "not-uploaded", "0", "0"
view all matches for this distribution
view release on metacpan or search on metacpan
examples/cgi-app/start.sh view on Meta::CPAN
#!/bin/sh
start_server --port 127.0.0.1:3000 -- starman --workers 1 examples/cgi-app/my-app.cgi
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Server/Control/Starman.pm view on Meta::CPAN
use strict;
use warnings;
extends 'Server::Control';
has '+binary_name' => ( is => 'ro', isa => 'Str', default => 'starman' );
has 'app_psgi' => ( is => 'ro', required => 1 );
has 'options' => ( is => 'ro', required => 1, isa => 'HashRef' );
has 'options_string' => ( is => 'ro', init_arg => undef, lazy_build => 1 );
sub BUILD {
lib/Server/Control/Starman.pm view on Meta::CPAN
sprintf( '%s %s %s',
$self->binary_path, $self->options_string, $self->app_psgi )
);
}
# HACK - starman does not show up in Proc::ProcessTable on Linux for some reason!
# Fall back to using /proc directly.
#
sub _find_process {
my ( $self, $pid ) = @_;
lib/Server/Control/Starman.pm view on Meta::CPAN
=head1 SYNOPSIS
use Server::Control::Starman;
my $starman = Server::Control::Starman->new(
binary_path => '/usr/local/bin/starman'
options => {
port => 123,
error_log => '/path/to/error.log',
pid => '/path/to/starman.pid'
},
);
if ( !$starman->is_running() ) {
$starman->start();
}
=head1 DESCRIPTION
Server::Control::Starman is a subclass of L<Server::Control|Server::Control>
lib/Server/Control/Starman.pm view on Meta::CPAN
Path to app.psgi; required.
=item options
Options to pass to the starman binary; required. Possible keys include:
C<listen>, C<host>, C<port>, C<workers>, C<backlog>, C<max_requests>, C<user>,
C<group>, C<pid>, and C<error_log>. Underscores are converted to dashes before
passing to starman.
C<--daemonize> and C<--preload-app> are automatically passed to starman; the
only current way to change this is by subclassing and overriding
C<_build_options_string>.
In addition, the C<error_log>, C<pid>, and C<port> options, if given, will be
used to populate the corresponding Server::Control parameters
lib/Server/Control/Starman.pm view on Meta::CPAN
options => {
port => 123,
error_log => '/path/to/error.log',
max_requests => 100,
pid => '/path/to/starman.pid'
}
will result in command line options
--port 123 --error-log /path/to/error.log --max-requests 100
--pid /path/to/starman.pid --daemonize --preload-app
=back
=head1 SEE ALSO
view all matches for this distribution
view release on metacpan or search on metacpan
eg/ubuntu-init.d/silki view on Meta::CPAN
. /lib/lsb/init-functions
LISTEN="127.0.0.1:13000"
RUNDIR="/var/run/silki"
PIDFILE="$RUNDIR/starman.pid"
STARMAN="/usr/local/bin/starman"
APP="/usr/local/bin/silki.psgi"
USER="www-data"
WORKERS="5"
if [ ! -f $APP ] ; then
eg/ubuntu-init.d/silki view on Meta::CPAN
silki_stop
silki_start
;;
status)
status_of_proc -p $PIDFILE "starman $APP" "Silki Starman server" && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/silki {start|stop|restart|reload|status}"
exit 1
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Plack/Handler/Starman/ModCluster.pm view on Meta::CPAN
=head1 DESCRIPTION
This handler exists for the C<plackup> compatibility. Essentially,
C<plackup -s Starman::ModCluster> is equivalent to C<starman-modcluster --preload-app>,
because the C<starman-modcluster> executable delay loads the application by
default. See L<starman-modcluster> for more details.
=head1 AUTHOR
Roman Jurkov
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Plack/Handler/Starman.pm view on Meta::CPAN
plackup -s Starman
=head1 DESCRIPTION
This handler exists for the C<plackup> compatibility. Essentially,
C<plackup -s Starman> is equivalent to C<starman --preload-app>,
because the C<starman> executable delay loads the application by
default. See L<starman> for more details.
=head1 AUTHOR
Tatsuhiko Miyagawa
view all matches for this distribution
view release on metacpan or search on metacpan
0.29_90 Thu Dec 1 19:40:52 PST 2011
- Changed the way server handles HUP and QUIT signals
HUP will just restart all the workers gracefully
QUIT will gracefully shutdown workers and the master
See `man 1 starman` and look for SIGNALS section.
0.2014 Sun Sep 18 12:43:06 PDT 2011
- Fixed broken PSGI response headers after the output (cho45)
0.2013 Sat Jun 25 11:51:47 PDT 2011
0.2001 Tue Apr 13 21:45:15 PDT 2010
- Fixed the way to set the default Delayed loader
0.2000 Tue Apr 13 20:22:24 PDT 2010
- INCOMPATIBLE: starman executable by default loads the application with Delayed to be safer.
Use --preload-app command line option to preload the application in the master process.
See `starman --help` for details.
0.1007 Tue Apr 13 19:45:59 PDT 2010
- Fixed a bug where Content-Length less response are sent in Keep-Alive without chunked,
choking HTTP/1.0 clients (patspam) #6
0.1006 Tue Apr 13 00:01:23 CEST 2010
- Fixed 100% CPU loop when an unexpected EOF happens (Graham Barr)
0.1005 Sun Mar 28 14:37:03 PDT 2010
- Implemented starman -v
0.1004 Sat Mar 27 19:10:06 PDT 2010
- Implemented --disable-keepalive for broken frontend proxy such as mod_proxy + mpm_prefork
- Documented --backlog
view all matches for this distribution
view release on metacpan or search on metacpan
Debian_CPANTS.txt view on Meta::CPAN
"perlconsole", "perlconsole", "0.4", "1", "1"
"perlindex", "perlindex", "1.605", "1", "2"
"perlipq", "perlipq", "1.25", "0", "3"
"pmtools", "pmtools", "1.10", "0", "0"
"pperl", "PPerl", "0.25", "3", "7"
"starman", "Starman", "0.2010", "0", "0"
"twiggy", "Twiggy", "0.1010", "0", "0"
"w3c-linkchecker", "W3C-LinkChecker", "4.8", "2", "2"
"xacobeo", "Xacobeo", "0.13", "0", "1"
"ylastic-costagent", "App-Ylastic-CostAgent", "not-uploaded", "0", "0"
view all matches for this distribution
view release on metacpan or search on metacpan
lib/TT2/Play/Area.pm view on Meta::CPAN
Alternatively, if you've installed the module from CPAN then you can run it
using plackup like this,
plackup `which tt2-play-area.psgi`
Note that if you run with starman you need to use the C<--preload-app>
option otherwise you will get 403 errors when trying to process the
templates because the CSRF prevention mechanism gets in the way.
Or if you checkout the github repo like this,
view all matches for this distribution
view release on metacpan or search on metacpan
share/2011.csv view on Meta::CPAN
Dancer-Plugin-EncodeID-0.02,2011-12-21T18:47:05,AGORDON,latest,released,0.02,,Dancer-Plugin-EncodeID,"Encode/Decode (or obfuscate) IDs in URLs"
List-Priority-0.03,2011-12-21T19:16:25,MGOULD,cpan,released,0.03,1,List-Priority,"Perl extension for a list that manipulates objects by their priority"
Statistics-R-0.25,2011-12-21T20:04:36,FANGLY,cpan,released,0.25,,Statistics-R,"Perl interface with the R statistical program"
Dist-Zilla-Plugin-Dpkg-0.02,2011-12-21T20:25:04,GPHAT,cpan,released,0.02,,Dist-Zilla-Plugin-Dpkg,"Generate Dpkg files for your perl module"
Dist-Zilla-Plugin-Dpkg-0.03,2011-12-21T20:27:54,GPHAT,backpan,released,0.03,,Dist-Zilla-Plugin-Dpkg,"Generate Dpkg files for your perl module"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.01,2011-12-21T20:31:59,GPHAT,cpan,released,0.01,1,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.02,2011-12-21T20:33:33,GPHAT,cpan,released,0.02,,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Marpa-XS-1.001_000,2011-12-21T20:50:14,JKEGL,backpan,developer,1.001_000,,Marpa-XS,"XS Version of Marpa"
SWISH-Filters-ImageTypesToXml-0.02,2011-12-21T21:05:42,LOGIE,cpan,released,0.02,1,SWISH-Filters-ImageTypesToXml,
Kaiten-Container-0.37,2011-12-21T21:29:57,MEETTYA,latest,released,0.37,,Kaiten-Container,"Simples dependency-injection (DI) container, distant relation of IoC."
PDL-2.4.9_016,2011-12-21T21:42:57,CHM,backpan,developer,v2.4.9_016,,PDL,"Perl Data Language"
Perl-Analysis-Static-0.004-TRIAL,2011-12-21T22:19:53,GGOLDBACH,cpan,developer,0.004,,Perl-Analysis-Static,"Static analysis of Perl documents"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.03,2011-12-21T22:23:03,GPHAT,cpan,released,0.03,,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Net-Inspect-0.03,2011-12-21T22:47:46,SULLR,backpan,released,0.03,,Net-Inspect,"libary for inspection of data on various network layers"
Term-UI-0.28,2011-12-21T22:55:43,BINGOS,backpan,released,0.28,,Term-UI,"User interfaces via Term::ReadLine made easy"
Perl-Critic-1.117,2011-12-21T23:20:08,THALJEF,cpan,released,1.117,,Perl-Critic,"Critique Perl source code for best-practices."
Net-IDN-Encode-1.900_20111221,2011-12-21T23:23:48,CFAERBER,backpan,developer,1.900_20111221,,Net-IDN-Encode,"Internationalizing Domain Names in Applications (UTSÂ #46)"
Term-UI-0.30,2011-12-21T23:34:12,BINGOS,backpan,released,0.30,,Term-UI,"User interfaces via Term::ReadLine made easy"
share/2011.csv view on Meta::CPAN
Teradata-SQL-0.10,2011-12-28T19:31:17,GROMMEL,cpan,released,0.10,,Teradata-SQL,"Perl interface to Teradata SQL (CLIv2)"
bpd.PW44-0.10,2011-12-28T19:36:37,BRIAND,backpan,released,0.10,1,bpd.PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
Crypt-PW44-0.10,2011-12-28T19:50:51,BRIAND,backpan,released,0.10,1,Crypt-PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
MooseX-Types-Signal-1.101931,2011-12-28T19:53:40,JROCKWAY,cpan,released,1.101931,,MooseX-Types-Signal,"a type to represent valid UNIX or Perl signals"
MooseX-Types-Signal-1.101932,2011-12-28T19:55:07,JROCKWAY,latest,released,1.101932,,MooseX-Types-Signal,"a type to represent valid UNIX or Perl signals"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.04,2011-12-28T20:02:57,GPHAT,cpan,released,0.04,,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Crypt-PW44-0.11,2011-12-28T20:08:22,BRIAND,backpan,released,0.11,1,Crypt-PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
Crypt-PW44-0.12,2011-12-28T20:16:14,BRIAND,backpan,released,0.12,,Crypt-PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
Business-OnlinePayment-Braintree-0.0002,2011-12-28T21:03:07,HORNBURG,cpan,released,0.0002,,Business-OnlinePayment-Braintree,"Online payment processing through Briantree"
Net-OpenStack-Compute-1.0101,2011-12-28T21:04:33,IRONCAMEL,cpan,released,1.0101,,Net-OpenStack-Compute,"Bindings for the OpenStack compute api."
Net-IDN-Encode-1.999_20111228,2011-12-28T21:11:07,CFAERBER,backpan,developer,1.999_20111228,,Net-IDN-Encode,"Internationalizing Domain Names in Applications (UTSÂ #46)"
view all matches for this distribution
view release on metacpan or search on metacpan
share/2011.csv view on Meta::CPAN
Dancer-Plugin-EncodeID-0.02,2011-12-21T18:47:05,AGORDON,latest,released,0.02,,Dancer-Plugin-EncodeID,"Encode/Decode (or obfuscate) IDs in URLs"
List-Priority-0.03,2011-12-21T19:16:25,MGOULD,cpan,released,0.03,1,List-Priority,"Perl extension for a list that manipulates objects by their priority"
Statistics-R-0.25,2011-12-21T20:04:36,FANGLY,cpan,released,0.25,,Statistics-R,"Perl interface with the R statistical program"
Dist-Zilla-Plugin-Dpkg-0.02,2011-12-21T20:25:04,GPHAT,cpan,released,0.02,,Dist-Zilla-Plugin-Dpkg,"Generate Dpkg files for your perl module"
Dist-Zilla-Plugin-Dpkg-0.03,2011-12-21T20:27:54,GPHAT,backpan,released,0.03,,Dist-Zilla-Plugin-Dpkg,"Generate Dpkg files for your perl module"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.01,2011-12-21T20:31:59,GPHAT,cpan,released,0.01,1,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.02,2011-12-21T20:33:33,GPHAT,cpan,released,0.02,,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Marpa-XS-1.001_000,2011-12-21T20:50:14,JKEGL,backpan,developer,1.001_000,,Marpa-XS,"XS Version of Marpa"
SWISH-Filters-ImageTypesToXml-0.02,2011-12-21T21:05:42,LOGIE,cpan,released,0.02,1,SWISH-Filters-ImageTypesToXml,
Kaiten-Container-0.37,2011-12-21T21:29:57,MEETTYA,latest,released,0.37,,Kaiten-Container,"Simples dependency-injection (DI) container, distant relation of IoC."
PDL-2.4.9_016,2011-12-21T21:42:57,CHM,backpan,developer,v2.4.9_016,,PDL,"Perl Data Language"
Perl-Analysis-Static-0.004-TRIAL,2011-12-21T22:19:53,GGOLDBACH,cpan,developer,0.004,,Perl-Analysis-Static,"Static analysis of Perl documents"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.03,2011-12-21T22:23:03,GPHAT,cpan,released,0.03,,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Net-Inspect-0.03,2011-12-21T22:47:46,SULLR,backpan,released,0.03,,Net-Inspect,"libary for inspection of data on various network layers"
Term-UI-0.28,2011-12-21T22:55:43,BINGOS,backpan,released,0.28,,Term-UI,"User interfaces via Term::ReadLine made easy"
Perl-Critic-1.117,2011-12-21T23:20:08,THALJEF,cpan,released,1.117,,Perl-Critic,"Critique Perl source code for best-practices."
Net-IDN-Encode-1.900_20111221,2011-12-21T23:23:48,CFAERBER,backpan,developer,1.900_20111221,,Net-IDN-Encode,"Internationalizing Domain Names in Applications (UTSÂ #46)"
Term-UI-0.30,2011-12-21T23:34:12,BINGOS,backpan,released,0.30,,Term-UI,"User interfaces via Term::ReadLine made easy"
share/2011.csv view on Meta::CPAN
Teradata-SQL-0.10,2011-12-28T19:31:17,GROMMEL,cpan,released,0.10,,Teradata-SQL,"Perl interface to Teradata SQL (CLIv2)"
bpd.PW44-0.10,2011-12-28T19:36:37,BRIAND,backpan,released,0.10,1,bpd.PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
Crypt-PW44-0.10,2011-12-28T19:50:51,BRIAND,backpan,released,0.10,1,Crypt-PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
MooseX-Types-Signal-1.101931,2011-12-28T19:53:40,JROCKWAY,cpan,released,1.101931,,MooseX-Types-Signal,"a type to represent valid UNIX or Perl signals"
MooseX-Types-Signal-1.101932,2011-12-28T19:55:07,JROCKWAY,latest,released,1.101932,,MooseX-Types-Signal,"a type to represent valid UNIX or Perl signals"
Dist-Zilla-Plugin-Dpkg-PerlbrewStarman-0.04,2011-12-28T20:02:57,GPHAT,cpan,released,0.04,,Dist-Zilla-Plugin-Dpkg-PerlbrewStarman,"Generate dpkg files for your perlbrew-backed, starman-based perl app"
Crypt-PW44-0.11,2011-12-28T20:08:22,BRIAND,backpan,released,0.11,1,Crypt-PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
Crypt-PW44-0.12,2011-12-28T20:16:14,BRIAND,backpan,released,0.12,,Crypt-PW44,"Perl password generator - generate 44-bit passwords using OPIE dictionary"
Business-OnlinePayment-Braintree-0.0002,2011-12-28T21:03:07,HORNBURG,cpan,released,0.0002,,Business-OnlinePayment-Braintree,"Online payment processing through Briantree"
Net-OpenStack-Compute-1.0101,2011-12-28T21:04:33,IRONCAMEL,cpan,released,1.0101,,Net-OpenStack-Compute,"Bindings for the OpenStack compute api."
Net-IDN-Encode-1.999_20111228,2011-12-28T21:11:07,CFAERBER,backpan,developer,1.999_20111228,,Net-IDN-Encode,"Internationalizing Domain Names in Applications (UTSÂ #46)"
view all matches for this distribution
view release on metacpan or search on metacpan
Debian_CPANTS.txt view on Meta::CPAN
"perlconsole", "perlconsole", "0.4", "1", "1"
"perlindex", "perlindex", "1.605", "1", "2"
"perlipq", "perlipq", "1.25", "0", "3"
"pmtools", "pmtools", "1.10", "0", "0"
"pperl", "PPerl", "0.25", "3", "7"
"starman", "Starman", "0.2010", "0", "0"
"twiggy", "Twiggy", "0.1010", "0", "0"
"w3c-linkchecker", "W3C-LinkChecker", "4.8", "2", "2"
"xacobeo", "Xacobeo", "0.13", "0", "1"
"ylastic-costagent", "App-Ylastic-CostAgent", "not-uploaded", "0", "0"
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Yath/Tester/UI.pm view on Meta::CPAN
use Importer Importer => 'import';
our @EXPORT = qw/start_yathui_server/;
use Test2::Harness::UI::Util::HashBase qw{
+schema <db <dsn <config <socket <port +_starman_pid
};
our $DRIVER = skipall_unless_can_db(['PostgreSQL', 'MySQL']);
$DRIVER =~ s{^.*::}{}g;
note("Using driver '$DRIVER'");
lib/App/Yath/Tester/UI.pm view on Meta::CPAN
my $pid = fork // die "Could not fork: $!";
unless ($pid) {
my $guard = guard {
warn "Scope Leak in starman";
posix::_exit(255);
};
local $ENV{HARNESS_UI_DSN} = $dsn;
local $ENV{YATH_UI_SCHEMA} = $schema;
require(pkg_to_file("Test2::Harness::UI::Schema::$schema"));
my $user = $config->schema->resultset('User')->create({username => 'root', password => 'root', realname => 'root', user_id => gen_uuid()});
my $project = $config->schema->resultset('Project')->create({name => 'test', project_id => gen_uuid()});
exec('starman', '-Ilib', '--listen' => ($self->{+PORT} ? ":$self->{+PORT}" : $self->{+SOCKET}), '--workers', 5, share_file('psgi/test.psgi')),
}
$self->{+_STARMAN_PID} = $pid;
return $self if $self->{+PORT};
lib/App/Yath/Tester/UI.pm view on Meta::CPAN
until (-S $self->{+SOCKET}) {
sleep $interval;
$counter += $interval;
# Only wait 20 seconds;
croak "Timed out waiting for starman" if $counter >= 20;
}
return $self;
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/srt/sv/spartacus.srt view on Meta::CPAN
Capua ropar snart ditt namn igen.
230
00:31:16,470 --> 00:31:21,390
Snart kommer du
att ta mästarmanteln ifrån thrakern.
231
00:31:21,490 --> 00:31:26,780
Allt kommer att bli som det var
innan det att du förlorade mot Theokoles.
view all matches for this distribution
view release on metacpan or search on metacpan
```bash
# Install Starman
cpanm Starman
# Run with multiple workers
starman --workers 10 --port 5678 app.psgi
```
Or with uWSGI:
```bash
view all matches for this distribution
view release on metacpan or search on metacpan
Debian_CPANTS.txt view on Meta::CPAN
"perlconsole", "perlconsole", "0.4", "1", "1"
"perlindex", "perlindex", "1.605", "1", "2"
"perlipq", "perlipq", "1.25", "0", "3"
"pmtools", "pmtools", "1.10", "0", "0"
"pperl", "PPerl", "0.25", "3", "7"
"starman", "Starman", "0.2010", "0", "0"
"twiggy", "Twiggy", "0.1010", "0", "0"
"w3c-linkchecker", "W3C-LinkChecker", "4.8", "2", "2"
"xacobeo", "Xacobeo", "0.13", "0", "1"
"ylastic-costagent", "App-Ylastic-CostAgent", "not-uploaded", "0", "0"
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ubic/Service/ServerStarter.pm view on Meta::CPAN
=head1 SYNOPSIS
use Ubic::Service::ServerStarter;
return Ubic::Service::ServerStarter->new({
cmd => [
'starman',
'--preload-app',
'--env' => 'development',
'--workers' => 5,
],
args => {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ubic/Service/Starman.pm view on Meta::CPAN
package Ubic::Service::Starman;
{
$Ubic::Service::Starman::VERSION = '0.004';
}
# Set the plackup bin to starman
sub BEGIN { $ENV{'UBIC_SERVICE_PLACKUP_BIN'} = 'starman'; }
use base qw(Ubic::Service::Plack);
# ABSTRACT: Helper for running psgi applications with Starman
lib/Ubic/Service/Starman.pm view on Meta::CPAN
my $class = shift;
my $args = @_ > 1 ? { @_ } : $_[0];
$args->{server} = 'Starman';
my $obj = $class->SUPER::new( $args );
# Default pid file for starman
unless( $obj->{server_args}->{pid} ){
# Set a pid for the starman server if one is not already set,
# we'll need it for the reload command to work
$obj->{server_args}->{pid} = $obj->pidfile . '.starman';
}
return $obj;
}
sub reload {
lib/Ubic/Service/Starman.pm view on Meta::CPAN
});
=head1 DESCRIPTION
This service is a common ubic wrap for psgi applications.
It uses starman for running these applications.
It is a very simple wrapper around L<Ubic::Service::Plack> that
uses L<starman> as the binary instead of L<plackup>. It
defaults the C<server> argument to 'Starman' so you don't have to pass
it in, and adds the ability to reload (which will gracefully restart
your L<Starman> workers without any connections lost) using
C<ubic reload service_name>.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/W3C/Validator/Server.pm view on Meta::CPAN
=head1 SYNOPSIS
$ w3c-validator-server.psgi
$ plackup /usr/bin/w3c-validator-server.psgi
$ starman path/to/w3c-validator-server.psgi
$ ./bin/w3c-validator-server.psgi
=cut
use strict;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Web/Simple/Application.pm view on Meta::CPAN
Additionally, you can treat the file as though it were a standard PSGI
application file (*.psgi). For example you can start up up with C<plackup>
plackup my_web_simple_app.pl
or C<starman>
starman my_web_simple_app.pl
=head2 to_psgi_app
This method is called by L</run_if_script> to create the L<PSGI> app coderef
for use via L<Plack> and L<plackup>. If you want to globally add middleware,
view all matches for this distribution
view release on metacpan or search on metacpan
script/webdao.psgi view on Meta::CPAN
#!/usr/bin/env starman
#===============================================================================
#
# DESCRIPTION: PSGI server for WebDAO
# AUTHOR: Aliaksandr P. Zahatski (Mn), <zag@cpan.org>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/WebDyne/Request/PSGI/Constant.pm view on Meta::CPAN
WEBDYNE_PSGI_INDEX => 'index.psp',
# Middeware config, static module. Loaded by default for convenience if
# started via webdyne.psgi script directly (i.e. not invoked by plakup
# or starman). Activate in middleware section below if wanted with plackup
# or starman
#
# Serve any static file except .psp
#
#WEBDYNE_PSGI_MIDDLEWARE_STATIC => qr{^(?!.*\.psp$).*\.\w+$},
#
view all matches for this distribution