Skip Menu |

This queue is for tickets about the Gepok CPAN distribution.

Report information
The Basics
Id: 115030
Status: resolved
Priority: 0/
Queue: Gepok

People
Owner: Nobody in particular
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.28
Fixed in: (no value)



Subject: How to specify ports with `plackup -s Gepok`?
Can you tell me, how do I specify the http_ports and https_ports if I am calling Gepok from plackup? (Please add to documentation 8-) TIA
On Fri, 3 Jun 2016 11:15:08 GMT, MTHURN wrote: Show quoted text
> Can you tell me, how do I specify the http_ports and https_ports if I > am calling Gepok from plackup? (Please add to documentation 8-) TIA
The plackup manpage says: Other options that starts with "--" are passed through to the backend server. See each Plack::Handler backend's documentation for more details on their available options. Anyway, I've added an example in Gepok (committed, but haven't made a new release yet). commit f449249 Author: perlancar (@pc-home) <perlancar@gmail.com> Date: Sat Jun 4 19:43:19 2016 +0700 Document how to specify options in plackup [RT#115030] diff --git a/lib/Gepok.pm b/lib/Gepok.pm index 1c4d47d..3c571d3 100644 --- a/lib/Gepok.pm +++ b/lib/Gepok.pm @@ -587,7 +587,11 @@ __END__ To run with plackup: - % plackup -s Gepok --daemonize + % plackup -s Gepok \ + --http_ports :8081,:8082,127.0.0.1:8083 \ + --unix_sockets /var/run/gepok.sock,/tmp/gepok.sock \ + ... + --daemonize To run standalone: