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

質問編集履歴

3

試したことを追加

2018/10/05 05:11

投稿

nchugzOiCRwyV38
nchugzOiCRwyV38

スコア18

title CHANGED
File without changes
body CHANGED
@@ -59,6 +59,9 @@
59
59
  2018-10-04T18:26:27.510739+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>'
60
60
  ```
61
61
 
62
+ ### 試したこと
63
+
64
+
62
65
  logをみて、
63
66
  ```
64
67
  bundle exec puma -C config/puma.rb
@@ -81,4 +84,10 @@
81
84
 
82
85
  ```
83
86
 
84
- 改善すべき点があればご教示いただきたいです
87
+ 改善すべき点があればご教示いただきたいです
88
+
89
+ logのmessageをみて、bundlerのアップデートもしてみました。
90
+ ```
91
+ bundle update --bundler
92
+ ```
93
+ 上記のコマンドを実行し、正常にアップデートできたはずなんですが、bundlerに関するmessageは消えず、WARNING!も消えませんでした…

2

やってみたことを追加しました

2018/10/05 05:11

投稿

nchugzOiCRwyV38
nchugzOiCRwyV38

スコア18

title CHANGED
File without changes
body CHANGED
@@ -57,4 +57,28 @@
57
57
  2018-10-04T18:26:27.502463+00:00 app[web.1]: To install the missing version, run `gem install bundler:1.17.0.pre.1`
58
58
  2018-10-04T18:26:27.510693+00:00 app[web.1]: from /usr/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
59
59
  2018-10-04T18:26:27.510739+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>'
60
- ```
60
+ ```
61
+
62
+ logをみて、
63
+ ```
64
+ bundle exec puma -C config/puma.rb
65
+ ```
66
+ を実行しましたが、下のようにエラーが出てしまいました。
67
+ ```
68
+ bundler: failed to load command: puma (/Users/iharamoeka/.rbenv/versions/2.4.4/bin/puma)
69
+ ```
70
+
71
+ puma.rbがおかしいのかと思い、確認してみました。
72
+ ```puma.rb
73
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
74
+ threads threads_count, threads_count
75
+
76
+ port ENV.fetch("PORT") { 3000 }
77
+
78
+ environment ENV.fetch("RAILS_ENV") { "development" }
79
+
80
+ plugin :tmp_restart
81
+
82
+ ```
83
+
84
+ 改善すべき点があればご教示いただきたいです

1

heroku logs --tails の結果

2018/10/05 04:05

投稿

nchugzOiCRwyV38
nchugzOiCRwyV38

スコア18

title CHANGED
File without changes
body CHANGED
@@ -28,4 +28,33 @@
28
28
  warning Ignored scripts due to flag.
29
29
 
30
30
  この行が問題なのだと思うのですが、調べてもなかなか答えにたどり着けませんでした…
31
- どなたかご教授いただけると幸いです(><)
31
+ どなたかご教授いただけると幸いです(><)
32
+
33
+ ### 追記
34
+
35
+ 以下、heroku logs --tail の結果です
36
+
37
+ ```
38
+ 2018-10-04T14:56:11.806755+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-ocean-42853.herok
39
+ uapp.com request_id=46092eb5-c29b-42fc-975a-4c653f9a8d07 fwd="61.210.125.130" dyno= connect= service= status=503 bytes= protocol=https
40
+ 2018-10-04T15:03:20.166134+00:00 heroku[web.1]: State changed from crashed to starting
41
+ 2018-10-04T15:03:23.597847+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
42
+ 2018-10-04T15:03:27.149078+00:00 heroku[web.1]: Process exited with status 1
43
+ 2018-10-04T15:03:27.163411+00:00 heroku[web.1]: State changed from starting to crashed
44
+ 2018-10-04T15:03:26.981928+00:00 app[web.1]: /usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': Could not find 'bundler' (1.1
45
+ 7.0.pre.1) required by your /app/Gemfile.lock. (Gem::GemNotFoundException)
46
+ 2018-10-04T15:03:26.981954+00:00 app[web.1]: To update to the lastest version installed on your system, run `bundle update --bundler`.
47
+ 2018-10-04T15:03:26.981962+00:00 app[web.1]: from /usr/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
48
+ 2018-10-04T15:03:26.981956+00:00 app[web.1]: To install the missing version, run `gem install bundler:1.17.0.pre.1`
49
+ 2018-10-04T15:03:26.981965+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>'
50
+ 2018-10-04T18:26:21.498136+00:00 heroku[web.1]: State changed from crashed to starting
51
+ 2018-10-04T18:26:24.174723+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
52
+ 2018-10-04T18:26:27.590086+00:00 heroku[web.1]: Process exited with status 1
53
+ 2018-10-04T18:26:27.643429+00:00 heroku[web.1]: State changed from starting to crashed
54
+ 2018-10-04T18:26:27.502357+00:00 app[web.1]: /usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': Could not find 'bundler' (1.1
55
+ 7.0.pre.1) required by your /app/Gemfile.lock. (Gem::GemNotFoundException)
56
+ 2018-10-04T18:26:27.502460+00:00 app[web.1]: To update to the lastest version installed on your system, run `bundle update --bundler`.
57
+ 2018-10-04T18:26:27.502463+00:00 app[web.1]: To install the missing version, run `gem install bundler:1.17.0.pre.1`
58
+ 2018-10-04T18:26:27.510693+00:00 app[web.1]: from /usr/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
59
+ 2018-10-04T18:26:27.510739+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>'
60
+ ```