Nginx+Gunicorn+Django(Python)
When we have finished a project and going to delploy on the web, we might face the problem, how we are going to deploy. Here is my way to do it: Nginx+Gunicorn
Gunicorn is a kind of tool samialar with uWSGI but it's much more simple than uWSGI settiing.
Niginx setup
First you need to install the Niginx
below is the niginx install command on centOS:
yum install Niginx
Waithing the install completed.
Then we need to change the Nginx configure setting, normally it's under etc/Nginx/nginx.conf , after we opened it, we need to take a look where the configure file link the supported file:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
Af...