We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 674ef90 + 20e7ab8 commit e2bbfedCopy full SHA for e2bbfed
git-instaweb.sh
@@ -558,12 +558,14 @@ my \$app = builder {
558
559
# make it runnable as standalone app,
560
# like it would be run via 'plackup' utility
561
-if (__FILE__ eq \$0) {
+if (caller) {
562
+ return \$app;
563
+} else {
564
require Plack::Runner;
565
566
my \$runner = Plack::Runner->new();
567
\$runner->parse_options(qw(--env deployment --port $port),
- "$local" ? qw(--host 127.0.0.1) : ());
568
+ "$local" ? qw(--host 127.0.0.1) : ());
569
\$runner->run(\$app);
570
}
571
__END__
0 commit comments