質問編集履歴

2

追記

2018/10/04 07:26

投稿

nchugzOiCRwyV38
nchugzOiCRwyV38

スコア18

test CHANGED
File without changes
test CHANGED
@@ -81,3 +81,85 @@
81
81
 
82
82
 
83
83
  使っているのはRuby on Railsなので、前の質問の解決の仕方から間違っているのでしょうか…?
84
+
85
+
86
+
87
+ ### 追記2
88
+
89
+ Procfileに
90
+
91
+ ```
92
+
93
+ web: bundle exec puma -C config/puma.rb
94
+
95
+ ```
96
+
97
+
98
+
99
+ と記載してpushしましたが変わりませんでした。
100
+
101
+
102
+
103
+ heroku logs をみると、
104
+
105
+ ```
106
+
107
+ 2018-10-04T07:14:57.490379+00:00 heroku[web.1]: State changed from starting to crashed
108
+
109
+ 2018-10-04T07:14:57.492407+00:00 heroku[web.1]: State changed from crashed to starting
110
+
111
+ 2018-10-04T07:14:57.472342+00:00 heroku[web.1]: Process exited with status 1
112
+
113
+ 2018-10-04T07:15:00.228488+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
114
+
115
+ 2018-10-04T07:15:03.300048+00:00 heroku[web.1]: Process exited with status 1
116
+
117
+ 2018-10-04T07:15:03.322587+00:00 heroku[web.1]: State changed from starting to crashed
118
+
119
+ 2018-10-04T07:15:03.231232+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
120
+
121
+ 7.0.pre.1) required by your /app/Gemfile.lock. (Gem::GemNotFoundException)
122
+
123
+ 2018-10-04T07:15:03.231289+00:00 app[web.1]: To update to the lastest version installed on your system, run `bundle update --bundler`.
124
+
125
+
126
+
127
+ 2018-10-04T07:15:03.231292+00:00 app[web.1]: To install the missing version, run `gem install bundler:1.17.0.pre.1`
128
+
129
+ 2018-10-04T07:15:03.231354+00:00 app[web.1]: from /usr/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
130
+
131
+ 2018-10-04T07:15:03.231379+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>'
132
+
133
+ 2018-10-04T07:15:13.004130+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-ocean-42853.herok
134
+
135
+ uapp.com request_id=11b8bac5-ee1f-4cd4-93b2-d0e8f6eb0c71 fwd="202.235.128.8" dyno= connect= service= status=503 bytes= protocol=https
136
+
137
+ 2018-10-04T07:15:13.393198+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-ocean-
138
+
139
+ 42853.herokuapp.com request_id=c4c0f199-fc11-4985-b769-ab9e04fcfc28 fwd="202.235.128.8" dyno= connect= service= status=503 bytes= prot
140
+
141
+ ```
142
+
143
+
144
+
145
+ rails consoleの結果
146
+
147
+ ```
148
+
149
+ Traceback (most recent call last):
150
+
151
+ 4: from /app/bin/rails:3:in `<main>'
152
+
153
+ 3: from /app/bin/rails:3:in `load'
154
+
155
+ 2: from /app/bin/spring:8:in `<top (required)>'
156
+
157
+ 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
158
+
159
+ /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler (LoadError)
160
+
161
+ ```
162
+
163
+
164
+
165
+ bundlerのファイルが読み込まれていないのでしょうか?

1

2018/10/04 07:26

投稿

nchugzOiCRwyV38
nchugzOiCRwyV38

スコア18

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,19 @@
65
65
  バリバリの初心者なので、そんなの常識ってことだったらごめんなさい????
66
66
 
67
67
  温かい心でご教示いただけると幸いですm(_ _)m
68
+
69
+
70
+
71
+ ### 追記
72
+
73
+
74
+
75
+ 一つ前の質問の続きです!
76
+
77
+
78
+
79
+ すみません、node.jsの仕組みをよく理解していなかったみたいです。
80
+
81
+
82
+
83
+ 使っているのはRuby on Railsなので、前の質問の解決の仕方から間違っているのでしょうか…?