Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

app.psgi rewrote for Dancer 1.160

  • Loading branch information...
commit 07c32ce2b19b02c109e4491af65261a11d5dad3e 1 parent 0d2fc1a
Alexis Sukrieh authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 app.psgi
View
10 app.psgi
@@ -1,15 +1,13 @@
-# This is a PSGI application file for Apache+Plack support
+# PSGI application bootstraper for Dancer
use lib '/srv/dancer.sukria.net/perldancer-website';
-use perldancer;
+use perldancer-website;
use Dancer::Config 'setting';
setting apphandler => 'PSGI';
-setting environment => 'production';
Dancer::Config->load;
my $handler = sub {
my $env = shift;
- local *ENV = $env;
- my $cgi = CGI->new();
- Dancer->dance($cgi);
+ my $request = Dancer::Request->new($env);
+ Dancer->dance($request);
};
Please sign in to comment.
Something went wrong with that request. Please try again.