Subject: | using Catalyst 5.89002 it doesn't reply to the browser |
use oauth2; # small catalyst 5.89002 app
use FindBin qw($Bin);
use lib "$Bin/../lib";
use Gepok;
my $d = Gepok->new(
http_ports => ['127.0.0.1:8085'], # default none
https_ports => ['127.0.0.1:8084'], # default none
unix_sockets => ['/tmp/gepok.sock'], # default none
ssl_key_file => "$Bin/../STAR.diff.key", # required if https_ports
specified
ssl_cert_file => "$Bin/../STAR.diff.pem", # required if https_ports
specified
#max_requests_per_child => 100, # default is 1000
start_servers => 0, # default is 3, 0 means don't
prefork
daemonize => 0, # default is 1, 0 = don't go into background
);
# run PSGI application
$d->run(oauth2->psgi_app);
then I run it with:
Show quoted text
> perl -Ilib script/script_above.pl
and it seems to work:
[...]
[debug] Loaded Path actions:
.-------------------------------------+--------------------------------------.
| Path | Private
|
+-------------------------------------+--------------------------------------+
| / | /index
|
| / | /default
|
| /auth | /auth
|
'-------------------------------------+--------------------------------------'
[info] oauth2 powered by Catalyst 5.89002
Daemon (PID 5412) started at Wed Jul 20 23:31:28 2011
127.0.0.1 - - [20/07/2011:21:31:30 +0000] "GET /auth" 702271712 - "-"
"Wget/1.12 (dragonfly)"
but wget doesn't receive the answer.
If I run same application using:
Show quoted text> perl script/oauth2_server.pl
it works.