psgi Questions

2

cross-post: http://perlmonks.org/?node_id=1191821 Consider app.psgi: #!perl use 5.024; use strictures; use Time::HiRes qw(sleep); sub mock_connect { my $how_long_it_takes = 3 + rand; sleep $ho...
Murr asked 30/5, 2017 at 8:44

2

Solved

The Plack suite commonly uses the http://0:port. E.g. the following plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root=>".");' prints HTTP::Server::PSGI: Accepting connec...
Embarkment asked 6/7, 2015 at 9:51

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

What are the best practices for deploying a Perl application? Assume that you are deploying onto a vanilla box with little CPAN module installation. What are the ideal build, deploy methods? Module...
Furan asked 11/2, 2012 at 3:45

1

Solved

My Dancer app fails under uWSGI (2.0.7) + Apache (2.4.10) combination while it runs freely in other environments ( uWSGI + nginx, Starman + Apache, Dancer own dev-server). I don't find in logs any ...
Ameline asked 19/1, 2016 at 0:46

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 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

1

I'm working on a Catalyst/psgi application that would make great use of asychronous streaming, however beyond a simple timer (like here: http://www.catalystframework.org/calendar/2013/13), I'm a li...
Dong asked 6/6, 2014 at 2:54

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

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

1

Despite rather scant and unclear documentation and an effective How-To for beginners, I have grown to like PSGI and am currently using it in one of my applications. What I would like to know is how...
Hyaluronidase asked 16/1, 2012 at 16:52

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

Are there any Perl web-development frameworks other than Catalyst that are: written with Moose natively written for PSGI (not with some PSGI-emulation) Unicode ready/safe - so Perl 5.10+ small, e...
Orchardman asked 29/7, 2011 at 8:54

1

Solved

I'm not sure on the right way to set up the script app for www mechanize. I did try at least one alternate that works, however I'm trying to pass in configuration with the test so I can make loggin...
Armour asked 29/6, 2011 at 21:54

3

Solved

I have been trying to decide if my web project is a candidate for implementation using PSGI, but I don't really see what good it would do for my application at this stage. I don't really understan...
Tenia asked 26/5, 2011 at 8:14

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
1

© 2022 - 2024 — McMap. All rights reserved.