<div dir="ltr">I am using Debian. Installed through package manager. </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 11:18 AM, iynaix <span dir="ltr"><<a href="mailto:iynaix@gmail.com" target="_blank">iynaix@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, it is. (Although you should be using pip  instead ;) )<div><br></div><div>Running easy_install or pip without a virtualenv installs the package into your OS global site-packages. You will need sudo for this to work.</div>


</div><div class="gmail_extra"><br clear="all"><div>Cheers,<br>Xianyi</div><div><div class="h5">
<br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 11:11 AM, Brandon Lorenz <span dir="ltr"><<a href="mailto:blorenz@gmail.com" target="_blank">blorenz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">easy_install, but not into virtualenv (is this even possible?)</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 11:10 AM, Douglas Stanley <span dir="ltr"><<a href="mailto:douglas.m.stanley@gmail.com" target="_blank">douglas.m.stanley@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Let me ask this. How do most of you who use supervisor, install it? Do you use the distro packages, or also install it via pip/easy_install in a virtual env?<div>



<br></div><div>Doug</div></div><div class="gmail_extra"><div><div>
<br><br><div class="gmail_quote">On Thu, May 23, 2013 at 9:26 AM, William McVey <span dir="ltr"><<a href="mailto:wam@cisco.com" target="_blank">wam@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>On Wed, 2013-05-22 at 20:32 -0400, John Santiago wrote:<br>
> Has anyone had any experience install gunicorn on debian. Trying to<br>
> figure out the config. What is good set up for wsgi app?<br>
<br>
</div>I run most of my wsgi services (a combination of flask and django)<br>
through gunicorn on Ubuntu. I always install gunicorn into the<br>
virtualenv associated with my app/site, so installation is rarely more<br>
than a 'pip install gunicorn' from within the appropriate virtualenv.<br>
(Technically, I use chef to do this for me, but that's a tangent.)<br>
Similar to Brandon, I user supervisord to launch gunicorn, although I<br>
invoke it slightly different:<br>
<br>
<br>
In /etc/supervisor.d/gunicorn_MY_APP.conf<br>
<br>
        command=/srv/MY_APP_NAME/venv/bin/gunicorn_django --config /srv/MY_APP_NAME/app/conf/webserver.py /srv/MY_APP_NAME/app/MY_APP_site/settings.py<br>
        process_name=%(program_name)s<br>
        numprocs=1<br>
        numprocs_start=0<br>
        autostart=true<br>
        autorestart=true<br>
        directory=/srv/bundle_analysis<br>
        serverurl=AUTO<br>
        user=www-data<br>
        startsecs=1<br>
        startretries=3<br>
<br>
My gunicorn config file is webserver.py with variables like:<br>
<br>
        # What ports/sockets to listen on, and what options for them.<br>
        bind = "<a href="http://0.0.0.0:8000" target="_blank">0.0.0.0:8000</a>"<br>
        # The maximum number of pending connections<br>
        backlog = 2048<br>
        # What the timeout for killing busy workers is, in seconds<br>
        timeout = 180<br>
        # How long to wait for requests on a Keep-Alive connection, in<br>
        seconds<br>
        keepalive = 2<br>
        # The maxium number of requests a worker will process before<br>
        restarting<br>
        max_requests = 0<br>
        # Whether the app should be pre-loaded<br>
        preload_app = False<br>
        # How many worker processes<br>
        workers = 8<br>
        # Type of worker to use<br>
        worker_class = "sync"<br>
<br>
The last argument to the command is the django settings.py file which I<br>
assume you're familiar with.<br>
<span><font color="#888888"><br>
  -- William<br>
</font></span><div><div><br>
_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org" target="_blank">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Please avoid sending me Word or PowerPoint attachments.<br>See <a href="http://www.gnu.org/philosophy/no-word-attachments.html" target="_blank">http://www.gnu.org/philosophy/no-word-attachments.html</a>
</font></span></div>
<br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org" target="_blank">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org" target="_blank">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message.  Thank you.
</div>