[Dancer-users] Dancer + Plack/Starman - location of .psgi matters?

sawyer x xsawyerx at gmail.com
Mon May 9 08:22:08 CEST 2011


That's odd.

Could you please open a corresponding ticket in Github Issues?
Much appreciated!

Thanks,
Sawyer.

On Fri, May 6, 2011 at 7:54 PM, Richard Huxton <dev at archonet.com> wrote:

> It seems to matter whether my .psgi is in MyApp/bin or MyApp/other
>
> This works:
>  starman -E development -a bin/app.development.psgi ...
> This doesn't (complains about config not being loaded):
>  starman -E development -a res/app.development.psgi ...
>
> Makes no difference if I give a full path or not. I get the same error with
> "plackup" rather than "starman" too. Current versions of Dancer/Starmam.
>
> I'm guessing it's something to do with Dancer figuring out paths, but can't
> quite figure out what.
>
> TIA
>
> --- app.development.psgi file ---
> use Dancer;
> use Plack;
> load_app 'MyApp';
>
> use Dancer::Config 'setting';
> setting apphandler => 'PSGI';
> Dancer::Config->load;
>
> my $app1 = sub {
>    my $env = shift;
>    my $request = Dancer::Request->new( $env );
>    Dancer->dance( $request );
> };
>
>
> --
>  Richard Huxton
>  Archonet Ltd
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110509/1c9bb851/attachment.htm>


More information about the Dancer-users mailing list