perl-poet
perl-poet copied to clipboard
run.pl not working on windows
I can't get the standard run.pl
to work on Windows (Strawberry Perl 5.16). It seems to be a path problem - can't find the plackup
executable.
I looked at the code and wondered; any special reason to use IPC::System::Simple
?
Here's what I've done to get it running on Windows:
replace:
my @cmd = ("plackup", @options, $app_psgi);
print "Running " . join(", ", @cmd) . "\n";
run(@cmd);
with:
my @cmd = (@options, $app_psgi);
print "Running " . join(', ', 'plackup', @cmd) . "\n";
my $runner = Plack::Runner->new;
$runner->parse_options(@cmd);
$runner->run;
Thanks - will be fixed in next release
On Nov 7, 2012, at 3:09 AM, hstaugaard wrote:
I can't get the standard run.pl to work on Windows (Strawberry Perl 5.16). It seems to be a path problem - can't find the plackupexecutable.
I looked at the code and wondered; any special reason to use IPC::System::Simple?
Here's what I've done to get it running on Windows:
replace:
my @cmd = ("plackup", @options, $app_psgi); print "Running " . join(", ", @cmd) . "\n"; run(@cmd); with:
my @cmd = (@options, $app_psgi); print "Running " . join(', ', 'plackup', @cmd) . "\n"; my $runner = Plack::Runner->new; $runner->parse_options(@cmd); $runner->run; — Reply to this email directly or view it on GitHub.