[dancer-users] Dancer2 version of dancer script?

Brad Baxter bmb at mail.libs.uga.edu
Tue Mar 26 13:08:29 GMT 2013

 In the docs at https://metacpan.org/module/Dancer2::Manual, I see this:

Replace Dancer by Dancer2 in the application's code:

for f in $(find {lib,bin} -type f) ; do cat $f | sed -e
's/Dancer/Dancer2/g' > $f.2 && mv $f.2 $f; done

This changes Dancer to Dancer2 in lib/* and bin/*, but not in
public/*.  True, if I do what is suggested, I see what I expect with
an apace configuration that uses public/dispatch.cgi (while I'm
debugging), i.e., I see the dancer page in my browser.  But if I
change Dancer to Dancer2 in public/dispatch.cgi, then rather than
displaying the page in my browser, dispatch.cgi is apparently getting
set up to respond at localhost:3000.  So that leaves me with this
conundrum: In attempting to decide if I can reasonably use this module
in production, I first have to track down an apparent problem with the
suggested method of bootstrapping an application.  Or I have to wonder
if I have to use Dancer in some places and Dancer2 in other places in
the same app.  I don't really think that's true--just saying.

So that led me on a search for whether someone had developed a newer
bootstrapping method.

I'm happy to concede that I'm missing something obvious.



On Sat, Mar 23, 2013 at 2:11 AM, Octavian Rasnita <orasnita at gmail.com> wrote:
> As I read somewhere, for the moment the solution is to use Dancer (1) to
> create the app, then in it you can change "Dancer" with "Dancer2" in that
> app.
> I've done it and it works.
> --Octavian
> ----- Original Message ----- From: "Brad Baxter" <bmb at mail.libs.uga.edu>
> To: "Perl Dancer users mailing list" <dancer-users at dancer.pm>
> Sent: Friday, March 22, 2013 11:26 PM
> Subject: [dancer-users] Dancer2 version of dancer script?
>> Hi,
>> I'm just getting my feet wet with Dancer.  I started out with
>> Dancer(1) using the 'dancer' script on CPAN to jumpstart a new app.
>> Now I'm looking at Dancer2, and I'm looking for a similar script to
>> jumpstart a new app.
>> I found App::Dancer2 which include includes a dancer2 script.  I
>> thought it might be the jumpstart script I'm looking for, but now I'm
>> not so sure.  Reading the source, it appears to fetch
>> https://github.com/PerlDancer/Dancer2/archive/master.zip for each app,
>> which isn't really what I want.
>> So my question: is there a dancer2 script that's equivalent to the
>> dancer script for Dancer(1)?  Is the App::Dancer2 dancer2 script
>> intended to be that?
>> Thanks much,
>> Brad
>> _______________________________________________
>> dancer-users mailing list
>> dancer-users at dancer.pm
>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

More information about the dancer-users mailing list