質問編集履歴
3
説明を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -49,3 +49,13 @@
|
|
49
49
|
WantedBy=multi-user.target
|
50
50
|
|
51
51
|
```
|
52
|
+
|
53
|
+
上記のようにファイルを変更したところ、エラーが次のようになりました。
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
Main process exited, code=exited, status=1/FAILURE
|
58
|
+
|
59
|
+
Failed with result 'exit-code'.
|
60
|
+
|
61
|
+
```
|
2
コードに修正を加えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,13 +38,9 @@
|
|
38
38
|
|
39
39
|
[Service]
|
40
40
|
|
41
|
-
User=ubuntu
|
42
|
-
|
43
|
-
Group=ubuntu
|
44
|
-
|
45
41
|
WorkingDirectory=/path/to/django/app
|
46
42
|
|
47
|
-
ExecStart=/
|
43
|
+
ExecStart=/usr/local/bin/gunicorn -w 3 -b 127.0.0.1:8000 {djangoappname}.wsgi
|
48
44
|
|
49
45
|
|
50
46
|
|
@@ -52,6 +48,4 @@
|
|
52
48
|
|
53
49
|
WantedBy=multi-user.target
|
54
50
|
|
55
|
-
/path/to/gunicornは、which gunic
|
56
|
-
|
57
51
|
```
|
1
説明を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,3 +19,39 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
ご教示いただけますと幸いです。よろしくお願いいたします。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## 追記
|
26
|
+
|
27
|
+
実際に設定したファイルは以下になります。
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
[Unit]
|
32
|
+
|
33
|
+
Description=gunicorn daemon
|
34
|
+
|
35
|
+
After=network.target
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
[Service]
|
40
|
+
|
41
|
+
User=ubuntu
|
42
|
+
|
43
|
+
Group=ubuntu
|
44
|
+
|
45
|
+
WorkingDirectory=/path/to/django/app
|
46
|
+
|
47
|
+
ExecStart=/path/to/gunicorn -w 3 -b 127.0.0.1:8000 {djangoappname}.wsgi
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
[Install]
|
52
|
+
|
53
|
+
WantedBy=multi-user.target
|
54
|
+
|
55
|
+
/path/to/gunicornは、which gunic
|
56
|
+
|
57
|
+
```
|