質問編集履歴

1

uWSGI.iniの内容

2018/06/02 08:07

投稿

2ru
2ru

スコア14

test CHANGED
File without changes
test CHANGED
@@ -27,3 +27,57 @@
27
27
  connect() to unix:///tmp/myproject.sock failed (2: No such file or directory) while connecting to upstream
28
28
 
29
29
  ```
30
+
31
+
32
+
33
+
34
+
35
+ ## uWSGI.ini
36
+
37
+ ```
38
+
39
+ [uwsgi]
40
+
41
+ # Django base
42
+
43
+ chdir = /home/ubuntu/myproject
44
+
45
+
46
+
47
+ # Django WSGI
48
+
49
+ module = myproject.wsgi:application
50
+
51
+
52
+
53
+ # Process
54
+
55
+ processes = 8
56
+
57
+ master = True
58
+
59
+ no-orphans = true
60
+
61
+ vacuum = True
62
+
63
+ pidfile = %duwsgi.pid
64
+
65
+ log-date = true
66
+
67
+
68
+
69
+ # Socket
70
+
71
+ socket = /tmp/myproject.sock
72
+
73
+ chmod-socket = 666
74
+
75
+ uid = ubuntu
76
+
77
+ gid = ubuntu
78
+
79
+
80
+
81
+ # daemonize = %d../logs/uwsgi.log
82
+
83
+ ```