Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^15: Need to know the process to implement perl script into web application server.

by choroba (Cardinal)
on Apr 29, 2021 at 20:51 UTC ( [id://11131893]=note: print w/replies, xml ) Need Help??


in reply to Re^14: Need to know the process to implement perl script into web application server.
in thread Need to know the process to implement perl script into web application server.

I fear Dancer plugins don't work in Dancer2.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^15: Need to know the process to implement perl script into web application server.
  • Download Code

Replies are listed 'Best First'.
Re^16: Need to know the process to implement perl script into web application server.
by chandantul (Scribe) on Apr 30, 2021 at 00:50 UTC

    Sir, I have tried below command and got the error

    starman --enable-ssl --ssl-key=C:\Users\Documents\Private-Public\priva +teKey.key --ssl-cert=C:\Users\Documents\Private-Public\certificate.cr +t --workers=10 bin/app.psgi

    Error: failed to listen to port 5000: Invalid argument at C:/Strawberry/perl/site/lib/HTTP/Server/PSGI.pm line 103.

    Are there any way i can utlize Apache 2.4 with Dancer 2 or How i can enable https in my existing app? Please let me know the best way.

    2021-05-01 Athanasius fixed over-long code line.

      Can you post everything the starman command emits? I'm not able to reproduce your problem.

      Line 103 in the given file is

      $class->new(%args) or die "failed to listen to port $self->{port}: $!";

      where the $class should be IO::Socket::SSL.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

        Sorry Sir, I was getting the error for the below command but not starman as i was unable to install starman module in my windows system.

        plackup --enable-ssl --ssl-key-file=C:\Users\Documents\Private-Public +\privateKey.key --ssl-cert-file=C:\Users\Documents\Private-Public\cer +tificate.crt app.psgi failed to listen to port 5000: Invalid argument at C:/Strawberry/perl/ +site/lib/HTTP/Server/PSGI.pm line 103.

        I am getting above error only

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-18 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found