Last active
August 29, 2015 14:15
-
-
Save simkimsia/37d84d27ce995011fd54 to your computer and use it in GitHub Desktop.
django configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/virtual/WebApps/virtualenvs/WeasyPrintProject | |
source/bin activate | |
cd weasyprint_site | |
uwsgi --ini uwsgi.ini | |
[uWSGI] getting INI configuration from uwsgi.ini | |
*** Starting uWSGI 2.0.9 (64bit) on [Fri Feb 20 01:22:05 2015] *** | |
compiled with version: 4.8.2 on 16 February 2015 05:39:16 | |
os: Linux-3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 | |
nodename: vagrant-ubuntu-trusty-64 | |
machine: x86_64 | |
clock source: unix | |
detected number of CPU cores: 1 | |
current working directory: /var/virtual/WebApps/virtualenvs/WeasyPrintProject/weasyprint_site | |
writing pidfile to /var/virtual/WebApps/virtualenvs/WeasyPrintProject/weasy_print.pid | |
detected binary path: /var/virtual/WebApps/virtualenvs/WeasyPrintProject/bin/uwsgi | |
!!! no internal routing support, rebuild with pcre support !!! | |
chdir() to /var/virtual/WebApps/virtualenvs/WeasyPrintProject/weasyprint_site | |
your processes number limit is 15934 | |
your memory page size is 4096 bytes | |
detected max file descriptor number: 1024 | |
lock engine: pthread robust mutexes | |
thunder lock: disabled (you can enable it with --thunder-lock) | |
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3 | |
Python version: 2.7.6 (default, Mar 22 2014, 23:03:41) [GCC 4.8.2] | |
Set PythonHome to /var/virtual/WebApps/virtualenvs/WeasyPrintProject | |
*** Python threads support is disabled. You can enable it with --enable-threads *** | |
Python main interpreter initialized at 0x21a7170 | |
your server socket listen backlog is limited to 100 connections | |
your mercy for graceful operations on workers is 60 seconds | |
mapped 145536 bytes (142 KB) for 1 cores | |
*** Operational MODE: single process *** | |
WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x21a7170 pid: 1879 (default app) | |
*** uWSGI is running in multiple interpreter mode *** | |
spawned uWSGI master process (pid: 1879) | |
spawned uWSGI worker 1 (pid: 1880, cores: 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream django { | |
server unix:///tmp/uwsgi.sock; | |
} | |
server { | |
listen 80; | |
server_name weasyprint.django.dev; | |
charset utf-8; | |
error_log /var/log/nginx/django-weasyprint.log; | |
location / { | |
uwsgi_pass django; | |
include /etc/nginx/uwsgi_params; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WeasyPrintProject | |
|---------bin | |
|---------include | |
|---------lib | |
|---------local | |
|---------share | |
|---------weasyprint_site | |
|------------db.sqlite3 | |
|------------manage.py | |
|------------test.py | |
|------------uwsgi.ini | |
|------------weasyprint_site | |
the first weasyprint_site is the project workspace | |
the second weasyprint_site is the project module | |
there is no app at the moment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
socket=/tmp/uwsgi.sock | |
chmod-socket=666 | |
uid = www-data | |
gid = www-data | |
chdir=/var/virtual/WebApps/virtualenvs/WeasyPrintProject/weasyprint_site | |
virtualenv=/var/virtual/WebApps/virtualenvs/WeasyPrintProject | |
module=weasyprint_site.wsgi:application | |
master=true | |
pidfile=/var/virtual/WebApps/virtualenvs/WeasyPrintProject/weasy_print.pid | |
vacuum=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment