Skip to content

prolabagency/django-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-boilerplate

Django boilerplate by PROlab

Ngnix

server {
    listen 80;
    server_name test2-1.prolab.kg;

    location = /favicon.ico { access_log off; log_not_found off; }
    location /static {
        alias /var/www/crm_prolab-back/static/static_root;
    }

    location / {
        include proxy_params;
        proxy_pass http://unix:/run/gunicorn.sock;
    }
} 

Gunicorn

[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target

[Service]
User=root
Group=www-data
WorkingDirectory=/var/www/crm_prolab-back
ExecStart=/var/www/crm_prolab-back/venv/bin/gunicorn \
          --access-logfile - \
          --workers 3 \
          --bind unix:/run/gunicorn.sock \
          core.wsgi:application

[Install]
WantedBy=multi-user.target

About

Django boilerplate by PROlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages