Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Dancer + cgi

by dsheroh (Monsignor)
on Mar 21, 2012 at 09:44 UTC ( [id://960746]=note: print w/replies, xml ) Need Help??


in reply to Dancer + cgi

I surprised that nobody has directly mentioned this yet,1 but the default code generated by dancer -a includes a dispatch.cgi in the public/ directory. Execute that like any other CGI script and you should be set.

1 it's covered in Dancer::Deployment, but that adds a lot of additional boilerplate that isn't actually relevant to Just Making It Work

Replies are listed 'Best First'.
Re^2: Dancer + cgi
by slatibart (Sexton) on Mar 21, 2012 at 12:01 UTC
    You made my day. In the end it is as simple as it should be. Now the comment to Plack::Runner in Dancer::Deployment makes sense to me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-24 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found