teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

uWSGI.iniの内容

2018/06/02 08:07

投稿

2ru
2ru

スコア14

title CHANGED
File without changes
body CHANGED
@@ -12,4 +12,31 @@
12
12
  ## エラー内容
13
13
  ```
14
14
  connect() to unix:///tmp/myproject.sock failed (2: No such file or directory) while connecting to upstream
15
+ ```
16
+
17
+
18
+ ## uWSGI.ini
19
+ ```
20
+ [uwsgi]
21
+ # Django base
22
+ chdir = /home/ubuntu/myproject
23
+
24
+ # Django WSGI
25
+ module = myproject.wsgi:application
26
+
27
+ # Process
28
+ processes = 8
29
+ master = True
30
+ no-orphans = true
31
+ vacuum = True
32
+ pidfile = %duwsgi.pid
33
+ log-date = true
34
+
35
+ # Socket
36
+ socket = /tmp/myproject.sock
37
+ chmod-socket = 666
38
+ uid = ubuntu
39
+ gid = ubuntu
40
+
41
+ # daemonize = %d../logs/uwsgi.log
15
42
  ```