$self->mk_file( "$script\/server.pl", <<"EOF");
$Config{startperl} -w
+BEGIN {
+ \$ENV{CATALYST_ENGINE} = 'Server';
+}
+
use strict;
use Getopt::Long;
use Pod::Usage;
use FindBin;
use lib "\$FindBin::Bin/../lib";
-use Catalyst::Test '$name';
+use $name;
my \$help = 0;
my \$port = 3000;
pod2usage(1) if \$help;
-Catalyst::Test::server(\$port);
+$name->run(\$port);
1;
__END__
$self->mk_file( "$script\/cgi-server.pl", <<"EOF");
$Config{startperl} -w
+BEGIN {
+ \$ENV{CATALYST_ENGINE} = 'Server';
+}
+
use strict;
use Getopt::Long;
use Pod::Usage;
use FindBin;
+use lib "\$FindBin::Bin/../lib";
use File::Spec;
-use Catalyst::Test;
+use $name;
my \$help = 0;
my \$port = 3000;
pod2usage(1) if \$help;
-Catalyst::Test::server(
- \$port, File::Spec->catfile( \$FindBin::Bin, 'nph-cgi.pl' ) );
+$name->run( \$port, File::Spec->catfile( \$FindBin::Bin, 'nph-cgi.pl' ) );
1;
__END__