質問編集履歴
1
質問文を訂正しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Herokuへのロ
|
1
|
+
Herokuへのデプロイ後、application errorが発生し、原因がわかりません。
|
test
CHANGED
@@ -1,426 +1,12 @@
|
|
1
|
-
cloud9でRuby on Rails
|
1
|
+
cloud9でRuby on Railsを使い、アプリ(myshoesapp)を作成しています。こちらをherokuへデプロイしたものの、URLを開くと、
|
2
2
|
|
3
|
+
![](f6573469f6eaee1e492df92acd9fdee7.png)
|
4
|
+
|
5
|
+
application errorと出てしまいます。
|
6
|
+
|
3
|
-
|
7
|
+
heroku logs --tailとすると、
|
4
8
|
|
5
9
|
|
6
|
-
|
7
|
-
```ここに言語を入力
|
8
|
-
|
9
|
-
Counting objects: 7, done.
|
10
|
-
|
11
|
-
Compressing objects: 100% (6/6), done.
|
12
|
-
|
13
|
-
Writing objects: 100% (7/7), 694 bytes | 347.00 KiB/s, done.
|
14
|
-
|
15
|
-
Total 7 (delta 4), reused 0 (delta 0)
|
16
|
-
|
17
|
-
remote: Compressing source files... done.
|
18
|
-
|
19
|
-
remote: Building source:
|
20
|
-
|
21
|
-
remote:
|
22
|
-
|
23
|
-
remote: -----> Ruby app detected
|
24
|
-
|
25
|
-
remote: -----> Compiling Ruby/Rails
|
26
|
-
|
27
|
-
remote: -----> Using Ruby version: ruby-2.5.7
|
28
|
-
|
29
|
-
remote: -----> Vendoring libpq 5.12.1
|
30
|
-
|
31
|
-
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
|
32
|
-
|
33
|
-
remote: -----> Installing dependencies using bundler 1.17.3
|
34
|
-
|
35
|
-
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
|
36
|
-
|
37
|
-
remote: Fetching gem metadata from https://rubygems.org/........
|
38
|
-
|
39
|
-
remote: Using rake 13.0.1
|
40
|
-
|
41
|
-
remote: Using CFPropertyList 2.3.6
|
42
|
-
|
43
|
-
remote: Using concurrent-ruby 1.1.5
|
44
|
-
|
45
|
-
remote: Using minitest 5.10.3
|
46
|
-
|
47
|
-
remote: Using thread_safe 0.3.6
|
48
|
-
|
49
|
-
remote: Using erubi 1.9.0
|
50
|
-
|
51
|
-
remote: Using mini_portile2 2.4.0
|
52
|
-
|
53
|
-
remote: Fetching builder 3.2.4
|
54
|
-
|
55
|
-
remote: Using crass 1.0.5
|
56
|
-
|
57
|
-
remote: Fetching rack 2.0.8
|
58
|
-
|
59
|
-
remote: Using nio4r 2.5.2
|
60
|
-
|
61
|
-
remote: Using websocket-extensions 0.1.4
|
62
|
-
|
63
|
-
remote: Using mini_mime 1.0.2
|
64
|
-
|
65
|
-
remote: Using arel 8.0.0
|
66
|
-
|
67
|
-
remote: Using bcrypt 3.1.12
|
68
|
-
|
69
|
-
remote: Using bundler 1.17.3
|
70
|
-
|
71
|
-
remote: Using mime-types-data 3.2019.1009
|
72
|
-
|
73
|
-
remote: Using coffee-script-source 1.12.2
|
74
|
-
|
75
|
-
remote: Using execjs 2.7.0
|
76
|
-
|
77
|
-
remote: Using method_source 0.9.2
|
78
|
-
|
79
|
-
remote: Fetching thor 1.0.1
|
80
|
-
|
81
|
-
remote: Installing builder 3.2.4
|
82
|
-
|
83
|
-
remote: Installing thor 1.0.1
|
84
|
-
|
85
|
-
remote: Installing rack 2.0.8
|
86
|
-
|
87
|
-
remote: Using unf_ext 0.0.7.6
|
88
|
-
|
89
|
-
remote: Using dry-inflector 0.2.0
|
90
|
-
|
91
|
-
remote: Using excon 0.71.1
|
92
|
-
|
93
|
-
remote: Fetching ffi 1.11.3
|
94
|
-
|
95
|
-
remote: Using formatador 0.2.5
|
96
|
-
|
97
|
-
remote: Using multi_json 1.14.1
|
98
|
-
|
99
|
-
remote: Using ipaddress 0.8.3
|
100
|
-
|
101
|
-
remote: Using xml-simple 1.1.5
|
102
|
-
|
103
|
-
remote: Using json 2.3.0
|
104
|
-
|
105
|
-
remote: Using http-accept 1.7.0
|
106
|
-
|
107
|
-
remote: Using netrc 0.11.0
|
108
|
-
|
109
|
-
remote: Using optimist 3.0.0
|
110
|
-
|
111
|
-
remote: Using xmlrpc 0.3.0
|
112
|
-
|
113
|
-
remote: Using kaminari-core 1.1.1
|
114
|
-
|
115
|
-
remote: Using mini_magick 4.7.0
|
116
|
-
|
117
|
-
remote: Using pg 0.20.0
|
118
|
-
|
119
|
-
remote: Using puma 3.9.1
|
120
|
-
|
121
|
-
remote: Using rb-fsevent 0.10.3
|
122
|
-
|
123
|
-
remote: Using rmagick 4.0.0
|
124
|
-
|
125
|
-
remote: Using tilt 2.0.10
|
126
|
-
|
127
|
-
remote: Using turbolinks-source 5.2.0
|
128
|
-
|
129
|
-
remote: Fetching i18n 1.7.0
|
130
|
-
|
131
|
-
remote: Installing i18n 1.7.0
|
132
|
-
|
133
|
-
remote: Installing ffi 1.11.3 with native extensions
|
134
|
-
|
135
|
-
remote: Using fission 0.5.0
|
136
|
-
|
137
|
-
remote: Fetching tzinfo 1.2.6
|
138
|
-
|
139
|
-
remote: Installing tzinfo 1.2.6
|
140
|
-
|
141
|
-
remote: Fetching nokogiri 1.10.7
|
142
|
-
|
143
|
-
remote: Using websocket-driver 0.6.5
|
144
|
-
|
145
|
-
remote: Using mail 2.7.1
|
146
|
-
|
147
|
-
remote: Fetching mime-types 3.3.1
|
148
|
-
|
149
|
-
remote: Installing mime-types 3.3.1
|
150
|
-
|
151
|
-
remote: Using coffee-script 2.4.1
|
152
|
-
|
153
|
-
remote: Using uglifier 3.2.0
|
154
|
-
|
155
|
-
remote: Using unf 0.1.4
|
156
|
-
|
157
|
-
remote: Using fog-core 1.45.0
|
158
|
-
|
159
|
-
remote: Using ovirt-engine-sdk 4.3.0
|
160
|
-
|
161
|
-
remote: Using turbolinks 5.0.1
|
162
|
-
|
163
|
-
remote: Using rack-test 1.1.0
|
164
|
-
|
165
|
-
remote: Using sprockets 3.7.2
|
166
|
-
|
167
|
-
remote: Using activesupport 5.1.6
|
168
|
-
|
169
|
-
remote: Using domain_name 0.5.20190701
|
170
|
-
|
171
|
-
remote: Using fog-json 1.2.0
|
172
|
-
|
173
|
-
remote: Using fog-local 0.6.0
|
174
|
-
|
175
|
-
remote: Using fog-vmfusion 0.1.0
|
176
|
-
|
177
|
-
remote: Using globalid 0.4.2
|
178
|
-
|
179
|
-
remote: Using activemodel 5.1.6
|
180
|
-
|
181
|
-
remote: Using jbuilder 2.7.0
|
182
|
-
|
183
|
-
remote: Using http-cookie 1.0.3
|
184
|
-
|
185
|
-
remote: Using fog-aliyun 0.3.5
|
186
|
-
|
187
|
-
remote: Using fog-brightbox 0.16.1
|
188
|
-
|
189
|
-
remote: Using fog-dnsimple 1.0.0
|
190
|
-
|
191
|
-
remote: Using fog-joyent 0.0.1
|
192
|
-
|
193
|
-
remote: Using fog-openstack 0.3.10
|
194
|
-
|
195
|
-
remote: Using fog-profitbricks 4.1.1
|
196
|
-
|
197
|
-
remote: Using fog-sakuracloud 1.7.5
|
198
|
-
|
199
|
-
remote: Using fog-serverlove 0.1.2
|
200
|
-
|
201
|
-
remote: Using fog-softlayer 1.1.4
|
202
|
-
|
203
|
-
remote: Using fog-storm_on_demand 0.1.1
|
204
|
-
|
205
|
-
remote: Using activejob 5.1.6
|
206
|
-
|
207
|
-
remote: Using activerecord 5.1.6
|
208
|
-
|
209
|
-
remote: Using carrierwave 1.2.2
|
210
|
-
|
211
|
-
remote: Using rest-client 2.1.0
|
212
|
-
|
213
|
-
remote: Using kaminari-activerecord 1.1.1
|
214
|
-
|
215
|
-
remote: Installing nokogiri 1.10.7 with native extensions
|
216
|
-
|
217
|
-
remote: Using rails-dom-testing 2.0.3
|
218
|
-
|
219
|
-
remote: Fetching loofah 2.4.0
|
220
|
-
|
221
|
-
remote: Using fog-xml 0.1.3
|
222
|
-
|
223
|
-
remote: Using rbovirt 0.1.7
|
224
|
-
|
225
|
-
remote: Using rbvmomi 2.3.0
|
226
|
-
|
227
|
-
remote: Using fog-atmos 0.1.0
|
228
|
-
|
229
|
-
remote: Using fog-aws 2.0.1
|
230
|
-
|
231
|
-
remote: Using fog-cloudatcost 0.1.2
|
232
|
-
|
233
|
-
remote: Using fog-digitalocean 0.4.0
|
234
|
-
|
235
|
-
remote: Using fog-dynect 0.0.3
|
236
|
-
|
237
|
-
remote: Using fog-ecloud 0.3.0
|
238
|
-
|
239
|
-
remote: Using fog-google 0.1.0
|
240
|
-
|
241
|
-
remote: Using fog-internet-archive 0.0.1
|
242
|
-
|
243
|
-
remote: Using fog-powerdns 0.2.0
|
244
|
-
|
245
|
-
remote: Using fog-rackspace 0.1.6
|
246
|
-
|
247
|
-
remote: Using fog-radosgw 0.0.5
|
248
|
-
|
249
|
-
remote: Using fog-riakcs 0.1.0
|
250
|
-
|
251
|
-
remote: Using fog-terremark 0.1.0
|
252
|
-
|
253
|
-
remote: Using fog-voxel 0.1.0
|
254
|
-
|
255
|
-
remote: Using fog-xenserver 1.0.0
|
256
|
-
|
257
|
-
remote: Using fog-ovirt 1.2.4
|
258
|
-
|
259
|
-
remote: Using fog-vsphere 3.2.1
|
260
|
-
|
261
|
-
remote: Using fog 1.42.0
|
262
|
-
|
263
|
-
remote: Installing loofah 2.4.0
|
264
|
-
|
265
|
-
remote: Using rails-html-sanitizer 1.3.0
|
266
|
-
|
267
|
-
remote: Using actionview 5.1.6
|
268
|
-
|
269
|
-
remote: Using kaminari-actionview 1.1.1
|
270
|
-
|
271
|
-
remote: Using actionpack 5.1.6
|
272
|
-
|
273
|
-
remote: Using actioncable 5.1.6
|
274
|
-
|
275
|
-
remote: Using actionmailer 5.1.6
|
276
|
-
|
277
|
-
remote: Using railties 5.1.6
|
278
|
-
|
279
|
-
remote: Using sprockets-rails 3.2.1
|
280
|
-
|
281
|
-
remote: Using coffee-rails 4.2.2
|
282
|
-
|
283
|
-
remote: Using jquery-rails 4.3.1
|
284
|
-
|
285
|
-
remote: Using rails 5.1.6
|
286
|
-
|
287
|
-
remote: Using kaminari 1.1.1
|
288
|
-
|
289
|
-
remote: Fetching rb-inotify 0.10.1
|
290
|
-
|
291
|
-
remote: Installing rb-inotify 0.10.1
|
292
|
-
|
293
|
-
remote: Using sass-listen 4.0.0
|
294
|
-
|
295
|
-
remote: Using sass 3.7.4
|
296
|
-
|
297
|
-
remote: Using sass-rails 5.0.6
|
298
|
-
|
299
|
-
remote: Bundle complete! 26 Gemfile dependencies, 120 gems now installed.
|
300
|
-
|
301
|
-
remote: Gems in the groups development and test were not installed.
|
302
|
-
|
303
|
-
remote: Bundled gems are installed into `./vendor/bundle`
|
304
|
-
|
305
|
-
remote: Post-install message from i18n:
|
306
|
-
|
307
|
-
remote:
|
308
|
-
|
309
|
-
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
|
310
|
-
|
311
|
-
remote: But that may break your application.
|
312
|
-
|
313
|
-
remote:
|
314
|
-
|
315
|
-
remote: Please check your Rails app for 'config.i18n.fallbacks = true'.
|
316
|
-
|
317
|
-
remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
|
318
|
-
|
319
|
-
remote: 'config.i18n.fallbacks = [I18n.default_locale]'.
|
320
|
-
|
321
|
-
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
|
322
|
-
|
323
|
-
remote:
|
324
|
-
|
325
|
-
remote: For more info see:
|
326
|
-
|
327
|
-
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
|
328
|
-
|
329
|
-
remote:
|
330
|
-
|
331
|
-
remote: Removing loofah (2.3.1)
|
332
|
-
|
333
|
-
remote: Removing rack (2.0.7)
|
334
|
-
|
335
|
-
remote: Removing i18n (0.9.5)
|
336
|
-
|
337
|
-
remote: Removing mime-types (3.3)
|
338
|
-
|
339
|
-
remote: Removing tzinfo (1.2.5)
|
340
|
-
|
341
|
-
remote: Removing thor (0.20.3)
|
342
|
-
|
343
|
-
remote: Removing builder (3.2.3)
|
344
|
-
|
345
|
-
remote: Removing nokogiri (1.10.5)
|
346
|
-
|
347
|
-
remote: Removing rb-inotify (0.10.0)
|
348
|
-
|
349
|
-
remote: Removing ffi (1.11.2)
|
350
|
-
|
351
|
-
remote: Bundle completed (27.63s)
|
352
|
-
|
353
|
-
remote: Cleaning up the bundler cache.
|
354
|
-
|
355
|
-
remote: -----> Installing node-v10.15.3-linux-x64
|
356
|
-
|
357
|
-
remote: -----> Installing node-v10.15.3-linux-x64
|
358
|
-
|
359
|
-
remote: Detected manifest file, assuming assets were compiled locally
|
360
|
-
|
361
|
-
remote: -----> Detecting rails configuration
|
362
|
-
|
363
|
-
remote: -----> Detecting rake tasks
|
364
|
-
|
365
|
-
remote:
|
366
|
-
|
367
|
-
remote: ###### WARNING:
|
368
|
-
|
369
|
-
remote:
|
370
|
-
|
371
|
-
remote: You have not declared a Ruby version in your Gemfile.
|
372
|
-
|
373
|
-
remote: To set your Ruby version add this line to your Gemfile: remote: ruby '2.5.7'
|
374
|
-
|
375
|
-
remote: # See https://devcenter.heroku.com/articles/ruby-versions for more information.
|
376
|
-
|
377
|
-
remote:
|
378
|
-
|
379
|
-
remote:
|
380
|
-
|
381
|
-
remote: ###### WARNING:
|
382
|
-
|
383
|
-
remote:
|
384
|
-
|
385
|
-
remote: Detecting rails configuration failed
|
386
|
-
|
387
|
-
remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
|
388
|
-
|
389
|
-
remote:
|
390
|
-
|
391
|
-
remote:
|
392
|
-
|
393
|
-
remote:
|
394
|
-
|
395
|
-
remote: -----> Discovering process types
|
396
|
-
|
397
|
-
remote: Procfile declares types -> web
|
398
|
-
|
399
|
-
remote: Default types for buildpack -> console, rake
|
400
|
-
|
401
|
-
remote:
|
402
|
-
|
403
|
-
remote: -----> Compressing...
|
404
|
-
|
405
|
-
remote: Done: 73.2M
|
406
|
-
|
407
|
-
remote: -----> Launching...
|
408
|
-
|
409
|
-
remote: Released v7
|
410
|
-
|
411
|
-
remote: https://myshoesapp.herokuapp.com/ deployed to Heroku
|
412
|
-
|
413
|
-
remote:
|
414
|
-
|
415
|
-
remote: Verifying deploy... done.
|
416
|
-
|
417
|
-
To https://git.heroku.com/myshoesapp.git
|
418
|
-
|
419
|
-
c4844e8..55f92ba master -> master
|
420
|
-
|
421
|
-
```
|
422
|
-
|
423
|
-
と出るのですが、https://myshoesapp.herokuapp.com/ へアクセスすると、Application errorとHerokuの画面が出てしまいます。原因が分からず、heroku logsとすると、
|
424
10
|
|
425
11
|
```
|
426
12
|
|
@@ -430,13 +16,9 @@
|
|
430
16
|
|
431
17
|
› or: --app myshoesapp
|
432
18
|
|
433
|
-
› Your local git repository has more than 1 app referenced
|
19
|
+
› Your local git repository has more than 1 app referenced in git remotes.
|
434
20
|
|
435
|
-
› in git remotes.
|
436
|
-
|
437
|
-
› Because of this, we can't determine which app you want
|
21
|
+
› Because of this, we can't determine which app you want to run this command against.
|
438
|
-
|
439
|
-
› to run this command against.
|
440
22
|
|
441
23
|
› Specify the app you want with --app or --remote.
|
442
24
|
|
@@ -448,16 +30,12 @@
|
|
448
30
|
|
449
31
|
›
|
450
32
|
|
451
|
-
›
|
452
|
-
|
453
|
-
› https://devcenter.heroku.com/articles/multiple-environments
|
33
|
+
› https://devcenter.heroku.com/articles/multiple-environments
|
454
34
|
|
455
35
|
```
|
456
36
|
|
457
37
|
|
458
38
|
|
459
|
-
と出るので
|
39
|
+
と出てくるのですが、原因がわかりません。
|
460
40
|
|
461
|
-
|
41
|
+
どなたかご教示頂けないでしょうか。
|
462
|
-
|
463
|
-
キータや当サイトでデプロイに関する記事や質問を見て実行してもどれも上手く行かない状態です。
|