mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2024-11-24 08:42:27 +02:00
rotate doesn't install on prod box
This commit is contained in:
parent
14428d818f
commit
e00909949f
@ -1,16 +1,11 @@
|
||||
package Explain;
|
||||
|
||||
use Mojo::Base 'Mojolicious';
|
||||
use MojoX::Log::Rotate;
|
||||
|
||||
sub startup {
|
||||
my $self = shift;
|
||||
|
||||
my $log = MojoX::Log::Rotate->new(
|
||||
'path' => $self->home->child( 'log', $self->mode . '.log' ),
|
||||
'frequency' => 86400
|
||||
);
|
||||
$self->log( $log );
|
||||
$self->log->path( $self->home->child( 'log', $self->mode . '.log' ) );
|
||||
|
||||
$self->sessions->cookie_name( 'explain' );
|
||||
$self->sessions->default_expiration( 60 * 60 * 24 * 365 );
|
||||
|
Loading…
Reference in New Issue
Block a user