|
|
@ -8,6 +8,7 @@ use lib 'lib'; |
|
|
|
use Mojolicious::Lite; |
|
|
|
use Mojolicious::Lite; |
|
|
|
use Mojolicious::Plugin::Mail; |
|
|
|
use Mojolicious::Plugin::Mail; |
|
|
|
use Mojolicious::Plugin::Database; |
|
|
|
use Mojolicious::Plugin::Database; |
|
|
|
|
|
|
|
use Mojolicious::Plugin::Redis; |
|
|
|
use Mojolicious::Plugin::StaticCompressor; |
|
|
|
use Mojolicious::Plugin::StaticCompressor; |
|
|
|
use Vroom::Constants; |
|
|
|
use Vroom::Constants; |
|
|
|
use Vroom::Conf; |
|
|
|
use Vroom::Conf; |
|
|
@ -100,6 +101,12 @@ plugin database => { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Connect to redis |
|
|
|
|
|
|
|
plugin redis =>{ |
|
|
|
|
|
|
|
serveur => $config->{'database.redis'}, |
|
|
|
|
|
|
|
helper => 'redis' |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
# Load mail plugin with its default values |
|
|
|
# Load mail plugin with its default values |
|
|
|
plugin mail => { |
|
|
|
plugin mail => { |
|
|
|
from => $config->{'email.from'}, |
|
|
|
from => $config->{'email.from'}, |
|
|
|