Answer the question
In order to leave comments, you need to log in
How to fix a bug with Uwsgi?
Ubuntu 15 server
Nginx 1.8
Uwsgi 2.0
From the console with the command: uwsgi --ini test.ini django starts successfully!!! Test.ini
file listing
[uwsgi]
http-socket = :8086
plugins = python
virtualenv = /home/adminko/virtualenv/test/
chdir = /home/adminko/projects/test/
env = DJANGO_SETTINGS_MODULE=test.settings
module = django.core.wsgi:get_wsgi_application()
server {
listen 8080;
server_name test;
error_log /home/adminko/projects/test/logs/nginx.error.log;
location /static/ {
alias /home/adminko/projects/test/files/static/;
}
location /media/ {
alias /home/adminko/projects/test/files/media/;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/home/adminko/projects/test/uwsgi.sock;
}
}
Answer the question
In order to leave comments, you need to log in
With this nginx configuration, your test.ini should look like this:
[uwsgi]
socket = /home/adminko/projects/test/uwsgi.sock
plugins = python
virtualenv = /home/adminko/virtualenv/test/
chdir = /home/adminko/projects/test/
env = DJANGO_SETTINGS_MODULE=test.settings
module = django.core.wsgi:get_wsgi_application()
daemonize = [путь к лог файлу uwsgi]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question