python - Supervisord - environment variables conflict for multiple porjects -
i have 2 sites build on django, both of them use gunicorn
managed supervisor 2
supervisord.conf:
[program:site1] environment=pythonpath="/home/www/virtualenv/site1/bin/:/home/www/site1/" command=/home/www/virtual/site1/bin/gunicorn wsgi:app -b localhost:1234 directory=/home/www/site1/ ... [program:site2] environment=pythonpath="/home/www/virtualenv/site2/bin/:/home/www/site2/" command=/home/www/virtual/site2/bin/gunicorn wsgi:app -b localhost:1235 directory=/home/www/site2/ ...
with configuration noticed site2 tries start settings of site1, , fails because cant find packages required site1, because not installed in virtualenv of site2. think happens because of pythonpath
mixes between 2 sites. how setup both sites use own virtualenv?
have different configuration files each site.
Comments
Post a Comment