Where can I find application runtime errors with Nginx, Starman, Plack, and Catalyst?

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?

+3
source share
3 answers

This is not going anywhere. Catalyst::Logsends data to STDERR, and the init script sends STDERRto /dev/null.

:

+5

, , , ...

, Hobbs.

"init script", STDERR /dev/null, Starman.

Starman, , --background, MooseX::Daemonize::Core.

, , STDERR, STDOUT STDIN /dev/null, MX_DAEMON_STDERR MX_DAEMON_STDOUT .

, MX_DAEMON_STDERR, , STDERR .

+3

Today, Starman has a command line option --error-logthat allows you to redirect error messages to a file.

See documentationstarman :

- 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.

0
source

Source: https://habr.com/ru/post/1764935/


All Articles