Dancer uses HTTP::Server::Simple::PSGI and it's possible that it isn't getting 
put into your package. Double check you're getting a webserver stuffed into 
your exe.

Lee's suggestions are also good ones.

Sent from my iPhone

On Aug 25, 2011, at 10:20 AM, John Ellyson <[email protected]> wrote:

> After the last presentation on the Dancer framework, I've been working on 
> using that for a little project at work.  I went the manual route of creating 
> the files rather than the using the dancer help script and have basically the 
> following files:
>   - /app.pl
>   - /config.yml (just specifying the port right now)
>   - /views/ (--> 3 template files)
> 
> Running this as a script is working and doing what I want.  (Well, there's 
> one minor issue, but I'll tackle that one later.)  
> 
> I tried bundling up the app.pl with the pp utility from PAR::Packer to create 
> app.exe.  When I run the app.exe, it looks like its working, but I can't get 
> a browser to connect to connect to it.  I suspect that I might need to 
> include more files into the par bundling.
> 
> Here's the questions that I'm trying to figure out:
>   - How do I go about bundling a Dancer application into a stand-alone 
> executable using PAR::Packer?
>   - Is it possible to bundle it so that the config.yml and template files are 
> outside the executable file so that I can modify their contents for use 
> without "recompiling" the executable?
> 
> Does anyone have any suggestions on how to do either of these?  Or 
> suggestions on where to start searching?
> 
> I've been through the Dancer module's documentation and have spent a few 
> hours searching PerlMonks and searching via Google with no luck.
> 
> John Ellyson
> 
> (Disclaimer:  I'm not wanting to create an executable for the purpose of 
> hiding/encrypting my code.  I was hoping to avoid installing Perl on the 
> server that I will be running this on.)
> _______________________________________________
> Houston mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/houston
> Website: http://houston.pm.org/
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/

Reply via email to