回答編集履歴
4
追記
answer
CHANGED
@@ -48,4 +48,12 @@
|
|
48
48
|
I, [2018-10-12T16:30:50.266149 #4677] INFO -- : master process ready
|
49
49
|
I, [2018-10-12T16:30:50.266507 #4710] INFO -- : worker=0 spawned pid=4710
|
50
50
|
I, [2018-10-12T16:30:50.266647 #4710] INFO -- : worker=0 ready
|
51
|
+
```
|
52
|
+
|
53
|
+
config/unicorn.rb でログの出力先を指定していると 下記だけの出力になります。
|
54
|
+
```
|
55
|
+
$ bundle exec rails s unicorn
|
56
|
+
=> Booting Unicorn
|
57
|
+
=> Rails 5.1.6 application starting in production on http://0.0.0.0:3000
|
58
|
+
=> Run `rails server -h` for more startup options
|
51
59
|
```
|
3
実行画面追加
answer
CHANGED
@@ -32,4 +32,20 @@
|
|
32
32
|
gem 'unicorn'
|
33
33
|
gem 'unicorn-rails'
|
34
34
|
```
|
35
|
-
`gem 'unicorn-rails' ` が入っていなければ、追加してください。
|
35
|
+
`gem 'unicorn-rails' ` が入っていなければ、追加してください。
|
36
|
+
|
37
|
+
----
|
38
|
+
|
39
|
+
ターミナルに こんなメッセージが出力されます。
|
40
|
+
|
41
|
+
```
|
42
|
+
$ bundle exec rails s unicorn
|
43
|
+
=> Booting Unicorn
|
44
|
+
=> Rails 5.1.6 application starting in production on http://0.0.0.0:3000
|
45
|
+
=> Run `rails server -h` for more startup options
|
46
|
+
I, [2018-10-12T16:30:50.264894 #4677] INFO -- : listening on addr=0.0.0.0:3000 fd=10
|
47
|
+
I, [2018-10-12T16:30:50.264982 #4677] INFO -- : worker=0 spawning...
|
48
|
+
I, [2018-10-12T16:30:50.266149 #4677] INFO -- : master process ready
|
49
|
+
I, [2018-10-12T16:30:50.266507 #4710] INFO -- : worker=0 spawned pid=4710
|
50
|
+
I, [2018-10-12T16:30:50.266647 #4710] INFO -- : worker=0 ready
|
51
|
+
```
|
2
追記
answer
CHANGED
@@ -21,4 +21,15 @@
|
|
21
21
|
```
|
22
22
|
bundle exec unicorn_rails -c config/unicorn.rb
|
23
23
|
```
|
24
|
-
を使うことが多いです。
|
24
|
+
を使うことが多いです。
|
25
|
+
|
26
|
+
----
|
27
|
+
(追記)
|
28
|
+
|
29
|
+
稼働中の Rails の Gemfile を確認して見たら、下記の2行を追加していました。
|
30
|
+
|
31
|
+
```
|
32
|
+
gem 'unicorn'
|
33
|
+
gem 'unicorn-rails'
|
34
|
+
```
|
35
|
+
`gem 'unicorn-rails' ` が入っていなければ、追加してください。
|
1
追記
answer
CHANGED
@@ -13,4 +13,12 @@
|
|
13
13
|
bundle exec rails s unicorn
|
14
14
|
```
|
15
15
|
|
16
|
-
でどうでしょうか?
|
16
|
+
でどうでしょうか?
|
17
|
+
|
18
|
+
----
|
19
|
+
|
20
|
+
個人的には...
|
21
|
+
```
|
22
|
+
bundle exec unicorn_rails -c config/unicorn.rb
|
23
|
+
```
|
24
|
+
を使うことが多いです。
|