From 4d2746df5796df6491b0563f666e1f31fcebd07b Mon Sep 17 00:00:00 2001 From: Grey Li Date: Fri, 18 May 2018 15:56:20 +0800 Subject: [PATCH] Add tips for supervisor user --- docs/diagnose.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/diagnose.rst b/docs/diagnose.rst index 24e0ae5587..4802a2d756 100644 --- a/docs/diagnose.rst +++ b/docs/diagnose.rst @@ -119,3 +119,14 @@ instead (not available on Windows). No, it does not, intentionally. Pipfile and setup.py serve different purposes, and should not consider each other by default. See :ref:`pipfile-vs-setuppy` for more information. + +☤ Using ``pipenv run`` in Supervisor program +--------------------------------------------- + +When you configure a supervisor program's ``command`` with ``pipenv run ...``, you +need to set locale enviroment variables properly to make it work. + +Add this line under ``[supervisord]`` section in ``/etc/supervisor/supervisord.conf``:: + + [supervisord] + environment=LC_ALL='en_US.UTF-8',LANG='en_US.UTF-8'