I did
-a 'test.conf;script/test.conf'
in the call to pp: so my config file is in the script dir in the par archive. But it is not found there... it is searched in the file system not in the par archive.
I did try -a 'test.conf' that placed the file in the root folder of the archive but that didn't work either.
If I add
my $file;
if ( $ENV{PAR_TEMP} ) {
print $ENV{PAR_TEMP}, "\n";
$file = $ENV{PAR_TEMP} . "/inc/script/test.conf";
}
else {
$file = 'test.conf';
}
my $config = plugin 'Config' => { file => $file };
That seems to pass. But I still got errors with
push @ARGV, qw(
daemon -m production -l http://127.0.0.1:3000
);
That gives "Unknown command "daemon", ...".
If I change to
push @ARGV, qw(
$0 daemon -m production -l http://127.0.0.1:3000
);
That gives "Can't open Mojolicious/Commands.pm: No such file or directory at Mojo/Util.pm line 140"
Adding -M Mojolicious::Commands in the pp option does nothing.
I would like to run pp with the -x option but how is is feasible with Mojolicous::Lite ?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.