Tag:gunicorn

  • Implementation of docker deployment of Django + MySQL + redis + gunicorn + nginx

    Time:2021-1-19

    1、 Preface Docker technology is very popular now. It is very efficient to build a project environment through containers. So recently, I took the time to read some tutorials, and then changed the blog deployment mode to docker. I don’t feel that there is any particularly good blog on the InternetdockerdeploydjangoProject tutorial, specially wrote this […]

  • Supervisor and gunicorn deploy Django project

    Time:2020-1-24

    Install the basic software nginx, supervisor, gunicorn vi /etc/supervisor/conf.d/django_project.conf [program:django_project] command=gunicorn xxx.wsgi:application -b 127.0.0.1:8080 -w 8 User = user – current user directory=/home/user/django_project stdout_logfile=/tmp/var/logs/supervisor/%(program_name)s-stdout.log stderr_logfile=/tmp/var/logs/supervisor/%(program_name)s-stderr.log killasgroup=true stopasgroup=true autorstart=true autorestart=true #Configuration of RQ queue [program:rqworker] command=python manage.py rqworker default low user=user directory=/home/django_project/platform stdout_logfile=/tmp/var/logs/supervisor/%(program_name)s-stdout.log stderr_logfile=/tmp/var/logs/supervisor/%(program_name)s-stderr.log killasgroup=true stopasgroup=true autorstart=true autorestart=true“` In the location of nginx configuration, add proxy_pass […]

  • What is the most difficult WSGI protocol for Python web development?

    Time:2019-12-10

    I think the first direction most Python developers come into contact with is the web direction (because there are always developers who want to make a blog for themselves, such as me). Since it is the web, there are inevitably some web frameworks, such as Django, flask, torando, etc. in the development process, after reading […]

  • Using flask to develop API — deploying flask, using HTTP server of gunicorn + gevent mode

    Time:2019-11-28

    Using flask to develop API — deploying flask, using HTTP server of gunicorn + gevent mode The server API is developed with flask, and the process of deploying the server is recorded for subsequent use. Install Python 3.5 Python3 has been installed on its own server, and the version is 3.5. It will not be […]

  • Flask Notes: Deploy Flask

    Time:2019-9-16

    There are many ways to publish and deploy flasks on the Internet. Here I use Gunicorn and nginx to publish flasks. Let me explain why supervisor is not used. I also deployed nginx, gunicorn and supervisor as recommended in some articles. But when I deployed it successfully, I found a problem. To write this, I […]

  • Miaoxing Online-Flask Blog Online Layout Process

    Time:2019-8-25

    Original:http://www.catonlinepy.tech/Statement: The original is not easy to reproduce without permission. In this article, Sister Cat will discuss how to deploy flask programs to Ubuntu servers. Among them, the deployment process involves the installation and use of Flask, Nginx, Gunicorn, Supervisor. By learning from today’s article, you will learn to deploy your own Flask web application […]

  • Nginx + gunicorn environment for Django project in Ubuntu 18.04

    Time:2019-8-21

    Today, I introduce how to build nginx + gunicorn environment for Django project in Ubuntu 18.04. The specific steps are as follows:1. Install gunicorn: PIP install gunicorn2. Start Django project with gunicorn: gunicorn project name. wsgi: application bind 127.0.0.1:80003. Install and configure nginx:When compiling and installing, several other packages need to be installed before installing […]

  • Nginx + gunicorn + supervisor to deploy Django project

    Time:2019-5-8

    After writing the Django project, to deploy the project to the server, we can use nginx, gunicorn and supervisor to deploy it. Installing Virtual Environment When multiple projects are deployed on a single machine, the packages that each project depends on may conflict and interact with each other. Using virtual environment can isolate the execution […]

  • Using Pipenv + Gunicorn + Supervisor to deploy Flask program under CentOS

    Time:2019-2-20

    When we develop a simple Flask program and want to deploy the project online, we can choose the traditional deployment mode or cloud deployment mode to deploy the project online. In this article, the author will useAliyun Lightweight Application ServerinstallCentOS 7The system deploys a simple Flask project. 1. Buying Domain Name, Server, SSL Certificate To […]