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