Maybe, probably–
# app.psgi, cp or mv it around and plackitup. :P use Path::Tiny; my $location = path(__FILE__)->absolute; sub { [ 200, [], ["OHAI $location!"] ] }
Update: I actually think a command line argument or plackup wrapper might be a better choice here. Multiple copies of code is code smell.
In reply to Re: does a script run via plackup knows where it is?
by Your Mother
in thread does a script run via plackup knows where it is?
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |