Questions tagged [starman]

Starman is a high-performance preforking Perl PSGI web server

Starman is a high-performance preforking Perl PSGI web server

27 questions
35
votes
4 answers

An explanation of the nginx/starman/dancer web stack

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 understand, from a high-level, how all the pieces…
Vijay Boyapati
  • 7,632
  • 7
  • 31
  • 48
24
votes
3 answers

Why use nginx with Catalyst/Plack/Starman?

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 Starman straight up on port 80?
Eric Johnson
  • 17,502
  • 10
  • 52
  • 59
12
votes
3 answers

How do you stop a perl Dancer/Starman/Plack server?

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 a quick way of stopping it and all the workers it has…
Vijay Boyapati
  • 7,632
  • 7
  • 31
  • 48
6
votes
1 answer

What is the optimal --max-requests setting for Starman?

I am running a Dancer (v1.3202) app with Starman (v0.4014) and ngynx as a front end proxy. I am noticing a huge latency spike in my load balancer every couple of hours and wonder if it's the workers reaching their request limit and restarting. The…
MadHacker
  • 608
  • 5
  • 18
4
votes
0 answers

Apache/Starman - how to implement lots of different webapps with single virtual host

I have a lot of CGI web applications under apache2, which have complex jQueryUI powered interfaces and corresponding perl backend, based upon CGI::Application framework. For user it looks like…
tercoz
  • 81
  • 6
4
votes
1 answer

Supervisor and perlbrew

I try to use supervisor with perlbrew, but I can not make it work. For perlbrew I just tried to set the environment variable that go well, but perhaps it is better to make a script that launches perlbrew and plackup, this my configuration…
Hobbestigrou
  • 1,777
  • 1
  • 13
  • 16
4
votes
1 answer

ZMQ sockets block when Starman receives HUP

I have the following code. I want to call the $pub->close method when the starman server receives the HUP signal. How do I know that the child process ends? Could I use an END {} block? I tried this and it seems to work when plackup restarts…
Peter Stuifzand
  • 5,084
  • 1
  • 23
  • 28
3
votes
1 answer

Configuring directory aliases in Starman (or other PSGI servers)

I am used to setting aliases to different directories in Apache httpd.conf. For example, the following works for me Alias /lib /path/to/lib Then I can include paths such as no matter what the…
punkish
  • 13,598
  • 26
  • 66
  • 101
3
votes
2 answers

Why does SSL fail in Starman

My setup works perfectly until I enable SSL. This starman -p 3001 app.psgi works fine, but this: starman --enable-ssl --ssl-cert a.crt --ssl-key a.key -p 3001 app.psgi does not - generating this error: Could not finalize SSL connection with client…
simone
  • 4,667
  • 4
  • 25
  • 47
3
votes
3 answers

Where can I find application runtime errors using Nginx, Starman, Plack and Catalyst?

I have managed successfully to server my Catalyst app on my development machine using Plack + Starman, using a daemon script I based on one I found in Dave Rolsky's Silki distribution. I then set up nginx to reverse proxy to my Starman server, and…
cubabit
  • 2,527
  • 3
  • 21
  • 34
3
votes
2 answers

uri_for includes port number on redirects

I'm attempting to implement a Catalyst application using nginx as a frontend web proxy for static files, and using Starman for my backend webserver. (I could use Apache & FastCGI and it works just fine, but I'd really like to get the whole PSGI /…
mjpeters_
  • 71
  • 6
3
votes
1 answer

Is there a way to use package/global variables with Dancer and Starman?

I cannot figure out a way to use package variables (or anything of the sort) in Dancer apps when run with Starman. I suppose it is somehow related to Starman's preforking but that is supposed to be a feature, not a bug. Here's the example Dancer…
campugnatus
  • 125
  • 6
2
votes
0 answers

FastCGI or PSGI Interface to NGINX in 2021

This question I asked has resulted in me exploring directly interfacing my FastCGI script to NGINX, rather than using a reverse proxy to Apache. I successfully modified my FastCGI script to run as a daemon using some code I found online: my $s =…
Timothy R. Butler
  • 1,097
  • 7
  • 20
2
votes
1 answer

Remote Debuging Perl, Dancer, Starman, Docker

Hi stackoverflow users, I am using: - Perl - Dancer - Starman - Camelcade - Intellij I built a container with the web application. I configure the environment variables requires by Camelcade. when I run the debug: perl -d:Camelcadedb…
Little crazy
  • 113
  • 2
  • 7
2
votes
0 answers

How do i use Plack Authentication with Session middleware?

I am having my own written middleware called Authentication and session where Authentication middleware generates the session key and save the session information in cookie upon successful authentication. Now using above cookie the Session…
CodeQuestor
  • 881
  • 1
  • 11
  • 25
1
2