in reply to Re: Mojolicious::Lite and PAR::Packer
in thread Mojolicious::Lite and PAR::Packer
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
That gives "Unknown command "daemon", ...". If I change topush @ARGV, qw( daemon -m production -l http://127.0.0.1:3000 );
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 ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Mojolicious::Lite and PAR::Packer
by frazap (Monk) on Apr 05, 2019 at 11:13 UTC |