Mojolicious. Сборник рецептов.

Sebastian Riedel (kraih), “Mojolicious Cookbook”, public translation into Russian from English More about this translation.

See also 38 similar translations

Translate into another language.

Participants

r3code393 points
shoorick292 points
HeavyAnykey198 points
And others...
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next
1 2 3 4 5

Mojolicious Cookbook

Mojolicious. Сборник рецептов.

History of edits (Latest: Foxcool 1 year, 10 months ago) §

— Поваренная книга Mojolicious - однако не то. (: Foxcool

— А так?  r3code

— Можно и так. Foxcool

— Том Кристиансен, Натан Торкингтон Perl. Сборник рецептов. Для профессионалов Perl Cookbook Том Кристиансен, Натан Торкингтон Perl. Сборник рецептов. Для профессионалов Perl Cookbook klik-klik

— Так?  Foxcool

# Copyright (C) 2008-2010, Sebastian Riedel.

# Copyright (C) 2008-2010, Sebastian Riedel.

History of edits (Latest: vti 1 year, 10 months ago) §

=head1 NAME

=head1 НАЗВАНИЕ

History of edits (Latest: vti 1 year, 10 months ago) §

Mojolicious::Guides::Cookbook - Cookbook

Mojolicious::Guides::Cookbook - Сборник полезных программных решений

History of edits (Latest: Foxcool 1 year, 10 months ago) §

— Сбобраниек )) Это наложились так правки в просмотре )) r3code

=head1 OVERVIEW

ОБЗОР

History of edits (Latest: r3code 1 year, 10 months ago) §

Cooking with L<Mojolicious>, recipes for every taste.

Готовим с помощью L<Mojolicious>. Рецепты на любой вкус.

History of edits (Latest: vti 1 year, 10 months ago) §

=head1 DEPLOYMENT

=head1 РАЗВЕРТЫВАНИЕ

History of edits (Latest: vti 1 year, 10 months ago) §

— разввертывание, расстановка, базирование fffuuuu Foxcool

— Может "Начало работы" ? r3code

— Мне кажется развертывание устоявшийся термин. vti

— Да, думаю это будет понятно и так. r3code

Getting L<Mojolicious> and L<Mojolicious::Lite> applications running on
different platforms.

Запуск L<Mojolicious> и L<Mojolicious::Lite> приложений на различных платформах.

History of edits (Latest: vti 1 year, 10 months ago) §

=head2 Builtin Server

=head2 Встроенный сервер

History of edits (Latest: vti 1 year, 10 months ago) §

— Сборка, подготовка хз Foxcool

L<Mojolicious> contains a very portable HTTP 1.1 compliant web server.
It is usally used during development but is solid and fast enough for small
to mid sized applications.

L<Mojolicious> имеет ультрапортативный HTTP 1.1 совместимый web-сервер. Обычно он используются при разработке, но он также достаточно стабильный и быстрый для небольших и средних приложений.

History of edits (Latest: vti 1 year, 10 months ago) §

— дальше пока не шарю Foxcool

% ./script/myapp daemon
Server available at http://127.0.0.1:3000.

% ./script/myapp daemon
Server available at http://127.0.0.1:3000.

History of edits (Latest: r3code 1 year, 10 months ago) §

It has many configuration options and is known to work on every platform
Perl works on.

Имеет множество опций, и, как известно, работает на любой платформе где есть Perl.

History of edits (Latest: perl5doc.ru 1 year, 10 months ago) §

% ./script/myapp help daemon
...List of available options...

% ./script/myapp help daemon ...Список доступных опций...

History of edits (Latest: perl5doc.ru 1 year, 10 months ago) §

Another huge advantage is that it supports TLS and WebSockets out of the box.

Другим большим преимуществом является то, что он поддерживает из коробки TLS и ВебСокеты

History of edits (Latest: perl5doc.ru 1 year, 10 months ago) §

% ./script/myapp daemon --listen https://*:3000
Server available at https://*:3000.

% ./script/myapp daemon --listen https://*:3000
Server available at https://*:3000.

History of edits (Latest: r3code 1 year, 10 months ago) §

— Хм, но ведь в консоли вряд ли будут ответы на русском Foxcool

— Сделаешь - будут ) r3code

Тут же I8N вродь есть r3code

A development certificate for testing purposes is built right in, so it just
works.

Сертификат разработчика для тестирования встроен, потому это просто
работает.

History of edits (Latest: r3code 1 year, 10 months ago) §

Comment was deleted

=head2 Builtin Preforking Server

=head2 Встроенный Prefork Сервер

History of edits (Latest: r3code 1 year, 10 months ago) §

— Думаю, что слово Preforking переводить не имеет смысла Foxcool

To allow scaling with multiple CPUs (cores) and to lower the performance loss
from (slow) blocking APIs the built in web server also has a preforking multi
process mode.
It doesn't work on Windows due to UNIX optimizations but is fast and scalable
enough for large applications.

Чтобы допускать масштабирование с несколькими процессорами (ядрами) и снизить потери производительности
из-за блокирующего (медленного) API, встроенный веб-сервер имеет многопроцессовый preforking
режим.
Это не работает на Windows из-за оптимизаций для UNIX, но это достаточно быстро и масштабируемо
для больших приложений.

History of edits (Latest: r3code 1 year, 10 months ago) §

% ./script/myapp daemon_prefork
Server available at http://127.0.0.1:3000.

% ./script/myapp daemon_prefork
Server available at http://127.0.0.1:3000.

History of edits (Latest: r3code 1 year, 10 months ago) §

— Это же пример запуска и ответа в консоли - незачем переводить Foxcool

— Да, думаю примеры ответов действительно не стоит трогать, мы же их не модифицируем пока r3code

By default it will accept one client connection per worker process just like
Apache, but this value can be increased, allowing huge amounts of concurrent
client connections.
(epoll and kqueue will be used automatically if available)

По умолчанию он будет принимать одно соединение от клиента на один процесс-обработчик, как
Apache, но это значение может быть увеличено, позволяя огромное количество одновременных
клиентских соединений.
(Epoll и kqueue будет использоваться автоматически при наличии)

History of edits (Latest: Foxcool 1 year, 10 months ago) §

% ./script/myapp daemon_prefork --clients 100
Server available at http://127.0.0.1:3000.

% ./script/myapp daemon_prefork --clients 100
Server available at http://127.0.0.1:3000.

History of edits (Latest: Foxcool 1 year, 10 months ago) §

— Код и примеры запуска в консоли переводить бессмысленно, ибо код вряд ли будем русифицировать ((: Foxcool

Comment was deleted

=head2 Nginx

=head2 Nginx

History of edits (Latest: shoorick 1 year, 10 months ago) §

One of the most popular setups these days is the builtin preforking web
server behind a Nginx reverse proxy.

Одним из наиболее популярных способов установки в настоящее время является встроенный preforking web сервер за инвертированным прокси Nginx .

History of edits (Latest: r3code 1 year, 10 months ago) §

upstream myapp {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name localhost;
location {
proxy_read_timeout 300;
proxy_pass http://myapp;
}
}

upstream myapp {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name localhost;
location {
proxy_read_timeout 300;
proxy_pass http://myapp;
}
}

History of edits (Latest: shoorick 1 year, 10 months ago) §
Pages: ← previous Ctrl next
1 2 3 4 5