I have a Starman based server -
#!/usr/bin/perl
use strict;
use warnings;
use Data::Printer;
use Plack::Builder;
my $app = sub {
my $env = shift;
my $session = $env->{'psgix.session'};
# Print environment variables
p($env);
…
Is there a way to discover on what server app.psgi is running?
For example, I am looking for some idea for how to solve the next code fragment from app.psgi:
#app.psgi
use Modern::Perl;
use Plack::Builder;
my $app = sub { ... };
my $server =…
I have developed a RESTful application with perl framework Dancer. This application needs almost 1 GB in memory and it takes 30 seconds to be loaded. This application works pretty well in a local test with ./bin/app.pl for a single user, then I try…
I would like to know if there is a Perl tool like supervisord to manage processes.
http://supervisord.org/
I have seen a Perl program called Supervisor, but I don't know if it is as good as the Python one:
https://metacpan.org/pod/Supervisor
I want…
I wrote a Dancer app, with the log config:
logger: file
logger_format: <%T> %m
log_path: '/usr/local/myapp/log'
log_file: 'myapp.log'
log: debug
and start it with:
plackup -E deployment -D -s Starman --workers=10 --port 8080…
MovableType 5.2 has builtin PSGI support (via a mt.psgi in the main directory) and I've been trying to take advantage of it using starman/plackup.
Starman w/ MT fires up, but I get odd Not Founds and a silent hang & fail when I run mt-upgrade.cgi.…
I have a Plack/Starman application running with TryCatch statements that call 'confess' from the Carp module. However I notice that the confess output is not printing to STDOUT. I've tried routing STDERR output to STDOUT '2>&1', but still don't see…
I have question about constructor for each child after forking.
For example:
warn "INIT : Parent : ".$$;
my $stash;
sub {
unless($stash) {
warn "init : Child : ".$$;
$stash = {
dbh => {}
};
}
return […
I want to start starman with option -r to upgrades source code without to restart server.
starman --workers 32 --port 8080 -r mytest.psgi
!!
!! Using restarter with -r or -R options is known to cause issues with process supervisor
!! such as…
I am running a web app under plackup with starman and trying to dynamically load and instantiate packages based on user requests. I am using 'require $packageName;' to load the package where $packageName contains the name of the package, the names…
I'm running a perl Dancer application using Starman via plack (hopefully that is describing things correctly), and mostly this has been a painless experience. I've just recently been trying to get sessions working (really simple stuff - I just want…
I use starman for my webapp. Apache web server listens on port 8080.
I want to rewrite some request like '/request' to this Apache web-server in starman. I try to find some pm, but I found few examples to help me.