Last active
July 12, 2017 08:08
django+nginx+uwsgi
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
server { | |
listen 8000; | |
server_name 127.0.0.1; | |
location /static/ { | |
alias /root/SWE/static/; | |
autoindex on; | |
} | |
location / { | |
include uwsgi_params; | |
uwsgi_pass 127.0.0.1:3031; | |
} | |
} | |
#nginx | |
#nginx -s reload | |
#service nginx restart |
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] | |
chdir=/root/SWE/ | |
wsgi-file=/root/SWE/swegui/wsgi.py | |
master=True | |
http-socket=0.0.0.0:3031 | |
processes=2 | |
threads=2 | |
daemonize=/var/log/uwsgi/swe.log | |
pidfile=/tmp/swe.pid | |
stats=0.0.0.0:3032 | |
#uwsgi uwsgi.ini | |
#uwsgi --reload /tmp/swe.pid | |
#ps aux | grep uwsgi | |
#killall uwsgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment