root пре 7 година
родитељ
комит
7bf06bb84f
2 измењених фајлова са 6 додато и 6 уклоњено
  1. 3 3
      pyrot_nginx.conf
  2. 3 3
      pyrot_uwsgi.ini

+ 3 - 3
pyrot_nginx.conf

@@ -1,13 +1,13 @@
 # the upstream component nginx needs to connect to
 upstream django {
-    server unix:///opt/rotbot-env/pyRot/webgui.sock; # For production file socket
-    # server 127.0.0.1:8001; # Web port socket for use with uwsgi-hello-world-test.py
+    server unix:///opt/rotbot-env/pyRot/webgui/webgui.sock; # For production file socket
+    #server 127.0.0.1:8001; # Web port socket for use with uwsgi-hello-world-test.py
 }
 
 # configuration of the server
 server {
     # the port your site will be served on
-    listen      8000;
+    listen      80;
     # the domain name it will serve for
     server_name _; # substitute your machine's IP address or FQDN
     charset     utf-8;

+ 3 - 3
pyrot_uwsgi.ini

@@ -1,12 +1,12 @@
 [uwsgi]
-
+binary-path = /opt/rotbot-env/bin/uwsgi
 # Django-related settings
 # the base directory (full path)
 chdir           = /opt/rotbot-env/pyRot/webgui
 # Django's wsgi file
 module          = webgui.wsgi
 # the virtualenv (full path)
-home            = /opt/rotbot-env
+home            = /opt/rotbot-env/
 
 # process-related settings
 # master
@@ -14,7 +14,7 @@ master          = true
 # maximum number of worker processes
 processes       = 10
 # the socket (use the full path to be safe
-socket          = /opt/rotbot-env/pyRot/webgui.sock
+socket          = /opt/rotbot-env/pyRot/webgui/webgui.sock
 # ... with appropriate permissions - may be needed
  chmod-socket    = 666
 # clear environment on exit