Is it possible to install a supervisor inside virtualenv?

I am currently installing a supervisor throughout the system on Ubuntu with apt-get install supervisor. All of my projects are inside virtualenvs, so system Python is not really used for anything.

Is it possible to install a supervisor inside my virtual servers? Can I run multiple instances?

+4
source share
2 answers

Yes. You can install virtualenvand then install the supervisor pip.

virtualenv env
cd env
./bin/pip install supervisor

create configuration file:

echo_supervisord_conf > /path_to_configuration_file/supervisord.conf

You can run multiple instances, just use a different port manager to listen in the configuration file:

port=127.0.0.1:9001
+5
source

, , .

virtualenv env. pip:

pip install supervisor

:

which supervisord

supervisord, .

. "supervisord", , :/etc/supervisord.conf

, virtualenv, ​​:

: .

. :

echo_supervisord_conf > supervisord.conf

. supervisord.conf(. http://supervisord.org/configuration.html), -c:

supervisord -c supervisord.conf

: http://supervisord.org/installing.html

+3

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


All Articles