what I mean is that each supervisor thread calls a separate gunicorn process. Sorry I'm getting the terms confused.
Anyway, I tried it, but I'm still having trouble. Here is my supervisor.conf [program:gunicorn-blog-HE-development] directory=/var/www/blog.development/private/blog command=/var/www/blog.development/private/blog/manage.py run_gunicorn 127.0.0.1:8091 --settings=settingsheb user=www-data autostart=true autorestart=unexpected redirect_stderr=True exitcodes=1 Now I have no problems if I run this a command in the terminal, e.g. "python manage.py ...", however, I also set the python path beforehand, and I don't see how to do that it supervisor. I know I can set an environment variable, for example environment=PYTHONPATH='/ path/to/apps', but what if my python path looks like this: PYTHONPATH='/path/to/apps1':'/other/path/to/apps2' This would be a LOT simpler if I could get gunicorn to run properly, anyone have any suggestions? -ron On Mar 3, 3:19 am, Shawn Milochik <sh...@milochik.com> wrote: > What do you mean by 'gunicorn instance' here? > > > The idea is that in each gunicorn instance I set the > > DJANGO_SETTINGS_MODULE to a different settings.py file, and hopefully > > get the corrrect result. > > In any case, I highly recommend you just use supervisord[1] for this > and put the path to the settings files in your supervisor config. > > Here's an example of what your supervisord config might look like: > > [program:my_site_1] > command=/home/username/projects/awesome_site/manage.py run_gunicorn > 127.0.0.1:8000 --settings=projects.site1_settings > > [program:my_site_2] > command=/home/username/projects/awesome_site/manage.py run_gunicorn > 127.0.0.1:8100 --settings=projects.site2_settings > > 1:http://supervisord.org/ > > Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.