I was able to successfully run the Catalyst application on my development machine using Plack + Starman using the script I daemon based on what I found in Dave Rolsky Silki .
Then I installed nginx for the reverse proxy on my Starman server and using the static directory alias for nginx. So far, so good. However, I am at a loss as to where my STDERR application should be registered. It does not reach nginx (I suppose that makes sense), but I cannot find much documentation regarding where Starman can register it - if you like. I looked at the Plack Middleware modules, but only saw access log options.
Can someone help me?
This is not going anywhere. Catalyst::Logsends data to STDERR, and the init script sends STDERRto /dev/null.
Catalyst::Log
STDERR
/dev/null
:
Catalyst::Log - Catalyst::Log::Log4perl Catalyst::Log _send_to_log - - , STDERR.
_send_to_log
, PSGI, STDERR. , . , .
FastCGI, , -. Plack Plack::Handler::FCGI/Plack::Handler::FCGI::Engine ( , FCGI:: Engine , FCGI.pm).
, , , ...
, Hobbs.
"init script", STDERR /dev/null, Starman.
Starman, , --background, MooseX::Daemonize::Core.
--background
MooseX::Daemonize::Core
, , STDERR, STDOUT STDIN /dev/null, MX_DAEMON_STDERR MX_DAEMON_STDOUT .
, MX_DAEMON_STDERR, , STDERR .
Today, Starman has a command line option --error-logthat allows you to redirect error messages to a file.
--error-log
See documentationstarman :
starman
- error logSpecify the path to the file where the error log should be written. This allows you to still have access to usage errors --daemonize.
- error log
Specify the path to the file where the error log should be written. This allows you to still have access to usage errors --daemonize.
--daemonize
Source: https://habr.com/ru/post/1764935/More articles:Как удалить строку в таблице соединений автоматически, чтобы избежать исключения ConstraintViolationException? - javaWhy does the function return the value of a local JSON variable instead of a global one? - jsonВизуализация Google (PieChart/LineChart) Проблема JQuery Ajax Firefox - jquerymysql query ГДЕ в одной таблице, но не в другой - sqlUsing the global vertex cache and still use glRotate? - androidStrange error merging data frames - rWhat is an elegant way to replace an array element based on matching criteria? - ruby | fooobar.comQuickTime RTSP / RTP over HTTP and Java - javaSymfony YML Files - Can You Get Associative Arrays More Than 1 Level? - yamlУправление расположением окна "Подтверждение навигации" с помощью JavaScript - javascriptAll Articles