Mojolicious-Che
view release on metacpan or search on metacpan
ÐобÑого вÑем
=head1 Mojolicious::Che
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
=head1 NAME
Config.pm - ÐÑÐ¸Ð¼ÐµÑ ÐºÐ¾Ð½Ñига Ð´Ð»Ñ Mojolicious::Che пÑиложениÑ
=head1 DESCRIPTION
See raw this module content.
=cut
{
'ÐÑоекÑ'=>'ТеÑÑ-пÑоекÑ',
# mojo => {
# mode=>...,
# log_level => ...,
# secrets => ...,
# plugins=> ...,
# session => ...,
# hooks => ...,
# has => ...,
# },
mojo_mode=> 'development',
mojo_log=>{level => 'debug'},
# plugins
'плÑгинÑ'=>[
#~ [charset => { charset => 'UTF-8' }, ],
#~ ['HeaderCondition'],
#~ ['ParamsArray'],
#~ [Minion => {Pg => 'postgresql://postgres@/test'}],
],
#mojo_session
'ÑеÑÑиÑ'=> {cookie_name => 'ELK'},
#mojo_secret
'ÑиÑÑÑ' => ['true 123 my app',],
# hooks
'Ñ
Ñки'=>{
#~ before_dispatch => sub {1;},
},
# has
'Ñ
азÑ' => {
foo => sub {my $app = shift; return 'bar!';},
},
# dbh
'базÑ000'=>{# will be as has dbh!
'main' => {
# DBI->connect(dsn, user, passwd, $attrs)
connect => ["DBI:Pg:dbname=test;", "guest", undef, {
ShowErrorStatement => 1,
AutoCommit => 1,
RaiseError => 1,
PrintError => 1,
pg_enable_utf8 => 1,
#mysql_enable_utf8 => 1,
#mysql_auto_reconnect=>1,
}],
# will do on connect
do => ['set datestyle to "ISO, DMY";',],
# prepared sth will get $app->sth->{<dbh name>}{<sth name>}
sth => {
foo => <<SQL,
select *
from foo
where
bar = ?;
SQL
},
}
},
# sth
# prepared sth will get $app->sth->{<dbh name>}{<sth name>}
'запÑоÑÑ' => {
main => {
now => "select now();"
},
},
# ns | namespaces
'ÑпейÑÑ'=>[],
# routes
'маÑÑÑÑÑÑ' => [
[get=>'/', to=> {cb=>sub{shift->render(format=>'txt', text=>'ÐдоÑова!');},}],
],
#~ 'задаÑи'=> {#first enable plugin Minion
#~ jobs => {
#~ slow_log => sub {
#~ my ($job, $msg) = @_;
#~ sleep 5;
#~ $job->app->log->error(qq{slow_log "$msg"});
#~ },
#~ },
};
( run in 1.232 second using v1.01-cache-2.11-cpan-d7f47b0818f )