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 ?
|