plack Questions
4
Solved
I've been doing web-programming for a while now and am quite familiar with the LAMP stack. I've decided to try playing around with the nginx/starman/dancer stack and I'm a bit confused about how to...
3
Solved
I started a Dancer/Starman server using:
sudo plackup -s Starman -p 5001 -E deployment --workers=10 -a mywebapp/bin/app.pl
but I'm unsure how I can stop the server. Can someone provide me with ...
2
The Plack::Builder allows mount multiple hosts, e.g. something as the following snippet:
my @sites = load_site_names();
my $apps;
for my $site (@sites) {
$apps->{$site} = Some::PsgiFramework::...
3
Solved
I'm working in a section of a Perl module that creates a large CSV response. The server runs on Plack, on which I'm far from expert.
Currently I'm using something like this to send the response:
...
3
Solved
1
Solved
Now my app.psgi contains (simplified):
builder {
enable 'Session', store => 'File'; #default uses Plack::Session::State::Cookie
$app;
};
Later, in the $app I'm using:
my $req = Plack::Requ...
Anticlinorium asked 21/3, 2015 at 20:9
1
Solved
I've just converted a PageKit (mod_perl) application to Plack. This means that I now need some way to enforce the POST_MAX/MAX_BODY that Apache2::Request would have previously handled. The easiest ...
Nowise asked 17/12, 2014 at 15:50
3
Solved
I am trying to deploy my little Catalyst web app using Plack/Starman. All the documentation seems to suggest I want to use this in combination with nginx. What are the benefits of this? Why not use...
1
Solved
I have a super class called Response :
package Response;
use strict;
use warnings;
use HTML::Template;
sub response {
my ( $class, $request ) = @_;
return $request->new_response( $class-...
3
Solved
I need to build a simple web-application. I decided to do it with Poet (Mason2), which uses Plack.
The application should be allowed to use only by authenticated users, so I need build some login/...
2
Solved
If I understand right, the PSGI application works as next:
got the request from a browser
the request is "bubbles" thru some middlewares in the order as them is defined in the builder
the request...
1
Solved
I have a simple Plack app (something like Plack::App::GitHub::WebHook) that I run using plackup. I perform a lengthy operation in the request handler, which currently makes the app unresponsive to ...
Grangerize asked 7/1, 2014 at 17:33
2
Solved
I have some code that looks like this:
use SomeApp;
use Test::WWW::Mechanize::PSGI;
my $mech = Test::WWW::Mechanize::PSGI->new(
app => sub { SomeApp->run(@_) },
);
$mech->get_ok('/')...
1
I'm trying to get Plack::App::CGIBin to work using Apache2 and FastCGI on FreeBSD 8.2. The eventual aim is to be able to use this setup to serve a whole bunch of legacy CGI scripts via Plack, in or...
1
Solved
Trying handling multiple file uploads with Plack.
My form:
<form id="file_upload" action="savefile" method="POST" enctype="multipart/form-data">
<input type="file" name="file[]" multiple...
5
Solved
I'm learning Modern perl - Moose, Plack etc. In much advices you can read "learn by examples" - so started searching for some ready-to-run applications written with Modern perl.
Browsed much...
2
Solved
This is my scenario:
So,
Requests via encrypted HTTPS go to Apache like: https://server1/MyPerlApp
If the user is not logged in, they get a redirect to some login page (in the server1), and Ap...
Corkwood asked 17/7, 2013 at 8:45
2
Solved
Is it recommended developing Plack applications (middlewares) with perl's taint mode?
If yes, how to start plackup and/or Starman in tainted mode? In the simple CGI script that was easily done wit...
2
Solved
In my previous question I asked about a multi-domain solution, but the question was too complex.
Now in short:
Is it possible to somehow setup name-based virtual hosts with Starman (or with any o...
2
Solved
I have this simple PSGI application (app.psgi).
use strict;
use warnings;
my $app = sub {
my $mem = `ps -o rss= -p $$`;
$mem =~ s/^\s*|\s*$//gs;
return [ 200, [ 'Content-Type' => 'text/text...
2
Solved
I plan develop one web application with PSGI/Plack. (probaly with
Dancer, but not decided yet).
The applicatiion should be utf8, multilingual (with Locale::Maketext) and (ofc) will contain some st...
2
Solved
A very popular choice for running Perl web applications these days seems to be behind a nginx webserver proxying requests to either a FastCGI daemon or a PSGI enabled webserver (e.g. Starman).
The...
Impeccant asked 23/10, 2010 at 11:20
1
© 2022 - 2024 — McMap. All rights reserved.