From 0358055cce0a1cb0ad2b5851fa880891932fd341 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 20 Jan 2021 18:12:58 -0500 Subject: [PATCH] [Docs] Document pyenv workaround for pm2 (#4709) * add pyenv specific fixes to pm2 * switch note to code-block * forgot a new line --- docs/autostart_pm2.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/autostart_pm2.rst b/docs/autostart_pm2.rst index 27300ec3b..84ccfdbc5 100644 --- a/docs/autostart_pm2.rst +++ b/docs/autostart_pm2.rst @@ -35,6 +35,17 @@ You can add additional Red based arguments after the instance, such as :code:`-- The name of your Red instance. +If you used :code:`pyenv virtualenv` to create your virtual environment, please make the following changes to the above generated command + +.. code-block:: none + + + Run the following instead to get your Python interpreter + pyenv which python + + Replace the `redbot` part of `pm2 start redbot` with the output of the following (when ran inside your activated venv) + pyenv which redbot + ------------------------------ Ensuring that PM2 stays online ------------------------------