X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FServer.pm;h=20c0bcc7ed7575488ca7f7198d597861173fcab6;hp=468494d19dc8e012dfb96f32596d590136e58424;hb=c9afa5fc4ed6c36afe6653d7d8fbb9909994c1a8;hpb=0169d3a8a5beb8e9642ceb5a6bef9db0aee5c6b7 diff --git a/lib/Catalyst/Engine/Server.pm b/lib/Catalyst/Engine/Server.pm index 468494d..20c0bcc 100644 --- a/lib/Catalyst/Engine/Server.pm +++ b/lib/Catalyst/Engine/Server.pm @@ -9,7 +9,19 @@ Catalyst::Engine::Server - Catalyst Server Engine =head1 SYNOPSIS -See L. +A script using the Catalyst::Engine::Server module might look like: + + #!/usr/bin/perl -w + + BEGIN { + $ENV{CATALYST_ENGINE} = 'Server'; + } + + use strict; + use lib '/path/to/MyApp/lib'; + use MyApp; + + MyApp->run; =head1 DESCRIPTION