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...
Trottier asked 26/8, 2012 at 4:17

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 ...
Andersen asked 17/6, 2013 at 21:30

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::...
Justen asked 26/3, 2016 at 1:21

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: ...
Dairen asked 28/7, 2015 at 0:24

3

Solved

Reformulating the question, because @optional asked me it wasn't clear and linked one HTML::Mason based solution Four easy steps to make Mason UTF-8 Unicode clean with Apache, mod_perl, and DBI ,...
Auto asked 2/5, 2011 at 14:47

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...
Gracielagracile asked 30/5, 2010 at 16:13

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-...
Melanymelaphyre asked 7/9, 2014 at 12:42

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/...
Abstinence asked 8/7, 2013 at 15:56

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...
Arnett asked 28/3, 2014 at 10:44

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('/')...
Cerracchio asked 28/12, 2013 at 9:33

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...
Kendo asked 17/10, 2013 at 9:33

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...
Session asked 10/8, 2013 at 20:40

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...
Belated asked 18/7, 2011 at 10:5

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...
Reinold asked 29/5, 2011 at 8:37

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...
Pronghorn asked 18/5, 2011 at 13:22

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...
Harelda asked 23/5, 2011 at 13:32

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...
Phase asked 18/5, 2011 at 10:18

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.