Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sample psgi

  • Loading branch information...
commit d7646700b0d79e4a7f025ccbc3834fbfa561a119 1 parent 699228f
@cho45 authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 eg/sample.psgi
View
21 eg/sample.psgi
@@ -0,0 +1,21 @@
+#!/usr/bin/env PERL5LIB=/Users/cho45/project/Starman/lib SERVER_STATUS_CLASS=sample plackup -s Starman -p 5000 --workers=10
+# :vim:set ft=perl:
+use strict;
+use warnings;
+use lib 'lib';
+
+use Plack::Builder;
+
+builder {
+ enable "Plack::Middleware::ServerStatus";
+
+ sub {
+ my $env = shift;
+ [ 200, [ 'Content-Type' => 'text/plain' ], [
+ 'Hello, World!'
+ ] ];
+ }
+};
+
+__END__
+
Please sign in to comment.
Something went wrong with that request. Please try again.