Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. ####################### UWSGI
  2. # artcolor_uwsgi.ini file
  3. [uwsgi]
  4.  
  5. # Django-related settings
  6. # the base directory (full path)
  7. chdir = /home/seb/pypassion/artcolor/src/
  8. # Django's wsgi file
  9. module = artcolor.wsgi
  10. # the virtualenv (full path)
  11. home = /home/seb/pypassion/artcolor/artcolor_venv/
  12.  
  13. # process-related settings
  14. # master
  15. master = true
  16. # maximum number of worker processes
  17. processes = 10
  18. # the socket (use the full path to be safe
  19. socket = /home/seb/pypassion/artcolor/src/artcolor.sock
  20. #http-socket = :8001
  21.  
  22. # ... with appropriate permissions - may be needed
  23. # chmod-socket = 664
  24. # clear environment on exit
  25. #vacuum = true
  26.  
  27. ####################### WSGI
  28. # -*- coding: utf-8 -*-
  29.  
  30. import os
  31. import sys
  32.  
  33. sys.path.insert(0,"/home/seb/pypassion/artcolor/src")
  34.  
  35. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "artcolor.settings")
  36.  
  37. from django.core.wsgi import get_wsgi_application
  38. application = get_wsgi_application()
  39.  
  40.  
  41. ############################ nginx
  42. upstream django {
  43. server /home/seb/pypassion/artcolor/src/artcolor.sock; # for a file socket
  44. #server 127.0.0.1:8001; # for a web port socket (we'll use this first)
  45. }
  46.  
  47. # configuration of the server
  48. server {
  49. # the port your site will be served on
  50. listen 9015;
  51. server_name localhost; # substitute your machine's IP address or FQDN
  52. charset utf-8;
  53.  
  54. access_log /home/seb/pypassion/artcolor/logs/nginx-access.log;
  55. error_log /home/seb/pypassion/artcolor/logs/nginx-error.log;
  56.  
  57.  
  58. # max upload size
  59. client_max_body_size 1G; # adjust to taste
  60.  
  61. # Django media
  62. location /media/ {
  63. alias /home/seb/pypassion/artcolor/src/media/; # your Django project's media files - amend as required
  64. }
  65.  
  66. location /static/ {
  67. alias /home/seb/pypassion/artcolor/src/static/; # your Django project's static files - amend as required
  68. }
  69.  
  70. # Finally, send all non-media requests to the Django server.
  71. location / {
  72. uwsgi_pass django;
  73. include uwsgi_params; # the uwsgi_params file you installed
  74. }
  75. }
  76.  
  77. ########################### console
  78. (artcolor_venv)seb@debian:~/pypassion/artcolor/src$ uwsgi --ini artcolor_uwsgi.ini
  79. [uWSGI] getting INI configuration from artcolor_uwsgi.ini
  80. *** Starting uWSGI 2.0.9 (64bit) on [Fri Feb 27 12:40:15 2015] ***
  81. compiled with version: 4.7.2 on 27 February 2015 11:00:34
  82. os: Linux-3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2
  83. nodename: debian
  84. machine: x86_64
  85. clock source: unix
  86. pcre jit disabled
  87. detected number of CPU cores: 8
  88. current working directory: /home/seb/pypassion/artcolor/src
  89. detected binary path: /home/seb/pypassion/artcolor/artcolor_venv/bin/uwsgi
  90. chdir() to /home/seb/pypassion/artcolor/src/
  91. your processes number limit is 63796
  92. your memory page size is 4096 bytes
  93. detected max file descriptor number: 1024
  94. lock engine: pthread robust mutexes
  95. thunder lock: disabled (you can enable it with --thunder-lock)
  96. uwsgi socket 0 bound to UNIX address /home/seb/pypassion/artcolor/src/artcolor.sock fd 3
  97. Python version: 2.7.3 (default, Mar 13 2014, 11:26:58) [GCC 4.7.2]
  98. Set PythonHome to /home/seb/pypassion/artcolor/artcolor_venv/
  99. *** Python threads support is disabled. You can enable it with --enable-threads ***
  100. Python main interpreter initialized at 0x1c2ad30
  101. your server socket listen backlog is limited to 100 connections
  102. your mercy for graceful operations on workers is 60 seconds
  103. mapped 800448 bytes (781 KB) for 10 cores
  104. *** Operational MODE: preforking ***
  105. WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1c2ad30 pid: 16539 (default app)
  106. *** uWSGI is running in multiple interpreter mode ***
  107. spawned uWSGI master process (pid: 16539)
  108. spawned uWSGI worker 1 (pid: 16540, cores: 1)
  109. spawned uWSGI worker 2 (pid: 16541, cores: 1)
  110. spawned uWSGI worker 3 (pid: 16542, cores: 1)
  111. spawned uWSGI worker 4 (pid: 16543, cores: 1)
  112. spawned uWSGI worker 5 (pid: 16544, cores: 1)
  113. spawned uWSGI worker 6 (pid: 16545, cores: 1)
  114. spawned uWSGI worker 7 (pid: 16546, cores: 1)
  115. spawned uWSGI worker 8 (pid: 16547, cores: 1)
  116. spawned uWSGI worker 9 (pid: 16548, cores: 1)
  117. spawned uWSGI worker 10 (pid: 16549, cores: 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement