1
0
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:
John Poole
2014-10-31 06:04:52 -07:00
parent cd980e2c24
commit cb3a519766
4 changed files with 48 additions and 11 deletions

View File

@ -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 } || {} );