pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

How to start python project on a python venv?

Open snowy-jaguar opened this issue 3 years ago • 1 comments

Hi I have several python projects that I want to manage with pm2 however they each have different requirements, some of which conflict. There's a simple solution to that... setting up a python venv (virtual environment). My issue is that I don't know how to tell pm2 start that it needs to look for the interpreter in a venv folder, I tried it and got told it couldn't access the interpreter files from the venv.

snowy-jaguar avatar Jun 16 '22 00:06 snowy-jaguar

create a startup-script and run this with pm2.

faulander avatar Aug 31 '22 08:08 faulander