Gunicorn+gevent+django+nginx Deployment Experience

Source: Internet
Author: User

Two words: Simple!

Gunicorn gevent Greenlet are all things that apt-get can solve.

After installing the CD to the target directory, Gunicorn--worker-class=gevent--workers=2-b 0.0.0.0:8080 wsgi:application basically solves the problem.

If there is a static file to be processed, to apt-get a nginx match under the/static/path to the server processing, the Django app to concentrate on processing logic

Nginx Plus Cache is also a two or three-minute thing, not much to say.

With Gunicorn this so-called WSGI container deployment is really much easier, and can not be modified in the app code to use to gevent asynchronous IO, is cool!

The approximate principle is as follows:

Gunicorn+gevent+django+nginx Deployment Experience

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.