You've already forked explain.depesz.com
mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2025-07-15 01:34:18 +02:00
server runs, not fully tested
This commit is contained in:
@ -17,8 +17,10 @@ sub startup {
|
||||
# load configuration
|
||||
my $config = $self->plugin( 'JSONConfig' );
|
||||
|
||||
# setup secret passphrase
|
||||
$self->secret( $config->{ secret } || 'Xwyfe-_d:yGDr+p][Vs7Kk+e3mmP=c_|s7hvExF=b|4r4^gO|' );
|
||||
# setup secret passphrase - later versions of
|
||||
# mojolicious require secrets to be multiple in an
|
||||
# array format
|
||||
$self->secrets( [$config->{ secret } || 'test'] );
|
||||
|
||||
# startup database connection
|
||||
$self->plugin( 'database', $config->{ database } || {} );
|
||||
|
Reference in New Issue
Block a user