質問編集履歴

5

修正

2020/09/14 14:10

投稿

keisuke.F
keisuke.F

スコア19

test CHANGED
File without changes
test CHANGED
@@ -698,13 +698,21 @@
698
698
 
699
699
  bundle --versionをローカルで打つと、
700
700
 
701
- ```Bundler version 2.1.4
702
-
703
- ```
701
+ ```
702
+
703
+ Bundler version 2.1.4
704
+
705
+ ```
706
+
707
+
704
708
 
705
709
  ec2-userでの環境で打つと
706
710
 
711
+
712
+
713
+ ```
714
+
707
- ```Bundler version 1.17.3
715
+ Bundler version 1.17.3
708
716
 
709
717
  ```
710
718
 

4

修正

2020/09/14 14:10

投稿

keisuke.F
keisuke.F

スコア19

test CHANGED
File without changes
test CHANGED
@@ -693,3 +693,23 @@
693
693
 
694
694
 
695
695
  ```
696
+
697
+
698
+
699
+ bundle --versionをローカルで打つと、
700
+
701
+ ```Bundler version 2.1.4
702
+
703
+ ```
704
+
705
+ ec2-userでの環境で打つと
706
+
707
+ ```Bundler version 1.17.3
708
+
709
+ ```
710
+
711
+
712
+
713
+
714
+
715
+ となっています。

3

2020/09/14 14:07

投稿

keisuke.F
keisuke.F

スコア19

test CHANGED
File without changes
test CHANGED
@@ -177,3 +177,519 @@
177
177
 
178
178
 
179
179
  よろしくお願い致します。
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+ 追記です。
188
+
189
+
190
+
191
+ gemfile.lock
192
+
193
+ ```
194
+
195
+ GEM
196
+
197
+ remote: https://rubygems.org/
198
+
199
+ specs:
200
+
201
+ actioncable (5.2.4.4)
202
+
203
+ actionpack (= 5.2.4.4)
204
+
205
+ nio4r (~> 2.0)
206
+
207
+ websocket-driver (>= 0.6.1)
208
+
209
+ actionmailer (5.2.4.4)
210
+
211
+ actionpack (= 5.2.4.4)
212
+
213
+ actionview (= 5.2.4.4)
214
+
215
+ activejob (= 5.2.4.4)
216
+
217
+ mail (~> 2.5, >= 2.5.4)
218
+
219
+ rails-dom-testing (~> 2.0)
220
+
221
+ actionpack (5.2.4.4)
222
+
223
+ actionview (= 5.2.4.4)
224
+
225
+ activesupport (= 5.2.4.4)
226
+
227
+ rack (~> 2.0, >= 2.0.8)
228
+
229
+ rack-test (>= 0.6.3)
230
+
231
+ rails-dom-testing (~> 2.0)
232
+
233
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
234
+
235
+ actionview (5.2.4.4)
236
+
237
+ activesupport (= 5.2.4.4)
238
+
239
+ builder (~> 3.1)
240
+
241
+ erubi (~> 1.4)
242
+
243
+ rails-dom-testing (~> 2.0)
244
+
245
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
246
+
247
+ activejob (5.2.4.4)
248
+
249
+ activesupport (= 5.2.4.4)
250
+
251
+ globalid (>= 0.3.6)
252
+
253
+ activemodel (5.2.4.4)
254
+
255
+ activesupport (= 5.2.4.4)
256
+
257
+ activerecord (5.2.4.4)
258
+
259
+ activemodel (= 5.2.4.4)
260
+
261
+ activesupport (= 5.2.4.4)
262
+
263
+ arel (>= 9.0)
264
+
265
+ activestorage (5.2.4.4)
266
+
267
+ actionpack (= 5.2.4.4)
268
+
269
+ activerecord (= 5.2.4.4)
270
+
271
+ marcel (~> 0.3.1)
272
+
273
+ activesupport (5.2.4.4)
274
+
275
+ concurrent-ruby (~> 1.0, >= 1.0.2)
276
+
277
+ i18n (>= 0.7, < 2)
278
+
279
+ minitest (~> 5.1)
280
+
281
+ tzinfo (~> 1.1)
282
+
283
+ addressable (2.7.0)
284
+
285
+ public_suffix (>= 2.0.2, < 5.0)
286
+
287
+ archive-zip (0.12.0)
288
+
289
+ io-like (~> 0.3.0)
290
+
291
+ arel (9.0.0)
292
+
293
+ bindex (0.8.1)
294
+
295
+ bootsnap (1.4.8)
296
+
297
+ msgpack (~> 1.0)
298
+
299
+ builder (3.2.4)
300
+
301
+ byebug (11.1.3)
302
+
303
+ capybara (3.33.0)
304
+
305
+ addressable
306
+
307
+ mini_mime (>= 0.1.3)
308
+
309
+ nokogiri (~> 1.8)
310
+
311
+ rack (>= 1.6.0)
312
+
313
+ rack-test (>= 0.6.3)
314
+
315
+ regexp_parser (~> 1.5)
316
+
317
+ xpath (~> 3.2)
318
+
319
+ childprocess (3.0.0)
320
+
321
+ chromedriver-helper (2.1.1)
322
+
323
+ archive-zip (~> 0.10)
324
+
325
+ nokogiri (~> 1.8)
326
+
327
+ coderay (1.1.3)
328
+
329
+ coffee-rails (4.2.2)
330
+
331
+ coffee-script (>= 2.2.0)
332
+
333
+ railties (>= 4.0.0)
334
+
335
+ coffee-script (2.4.1)
336
+
337
+ coffee-script-source
338
+
339
+ execjs
340
+
341
+ coffee-script-source (1.12.2)
342
+
343
+ concurrent-ruby (1.1.7)
344
+
345
+ crass (1.0.6)
346
+
347
+ erubi (1.9.0)
348
+
349
+ erubis (2.7.0)
350
+
351
+ execjs (2.7.0)
352
+
353
+ ffi (1.13.1)
354
+
355
+ globalid (0.4.2)
356
+
357
+ activesupport (>= 4.2.0)
358
+
359
+ haml (5.1.2)
360
+
361
+ temple (>= 0.8.0)
362
+
363
+ tilt
364
+
365
+ haml-rails (2.0.1)
366
+
367
+ actionpack (>= 5.1)
368
+
369
+ activesupport (>= 5.1)
370
+
371
+ haml (>= 4.0.6, < 6.0)
372
+
373
+ html2haml (>= 1.0.1)
374
+
375
+ railties (>= 5.1)
376
+
377
+ html2haml (2.2.0)
378
+
379
+ erubis (~> 2.7.0)
380
+
381
+ haml (>= 4.0, < 6)
382
+
383
+ nokogiri (>= 1.6.0)
384
+
385
+ ruby_parser (~> 3.5)
386
+
387
+ i18n (1.8.5)
388
+
389
+ concurrent-ruby (~> 1.0)
390
+
391
+ io-like (0.3.1)
392
+
393
+ jbuilder (2.10.1)
394
+
395
+ activesupport (>= 5.0.0)
396
+
397
+ kgio (2.11.3)
398
+
399
+ listen (3.1.5)
400
+
401
+ rb-fsevent (~> 0.9, >= 0.9.4)
402
+
403
+ rb-inotify (~> 0.9, >= 0.9.7)
404
+
405
+ ruby_dep (~> 1.2)
406
+
407
+ loofah (2.7.0)
408
+
409
+ crass (~> 1.0.2)
410
+
411
+ nokogiri (>= 1.5.9)
412
+
413
+ mail (2.7.1)
414
+
415
+ mini_mime (>= 0.1.1)
416
+
417
+ marcel (0.3.3)
418
+
419
+ mimemagic (~> 0.3.2)
420
+
421
+ method_source (1.0.0)
422
+
423
+ mimemagic (0.3.5)
424
+
425
+ mini_mime (1.0.2)
426
+
427
+ mini_portile2 (2.4.0)
428
+
429
+ minitest (5.14.2)
430
+
431
+ msgpack (1.3.3)
432
+
433
+ mysql2 (0.5.3)
434
+
435
+ nio4r (2.5.3)
436
+
437
+ nokogiri (1.10.10)
438
+
439
+ mini_portile2 (~> 2.4.0)
440
+
441
+ pry (0.13.1)
442
+
443
+ coderay (~> 1.1)
444
+
445
+ method_source (~> 1.0)
446
+
447
+ pry-rails (0.3.9)
448
+
449
+ pry (>= 0.10.4)
450
+
451
+ public_suffix (4.0.6)
452
+
453
+ puma (3.12.6)
454
+
455
+ rack (2.2.3)
456
+
457
+ rack-test (1.1.0)
458
+
459
+ rack (>= 1.0, < 3)
460
+
461
+ rails (5.2.4.4)
462
+
463
+ actioncable (= 5.2.4.4)
464
+
465
+ actionmailer (= 5.2.4.4)
466
+
467
+ actionpack (= 5.2.4.4)
468
+
469
+ actionview (= 5.2.4.4)
470
+
471
+ activejob (= 5.2.4.4)
472
+
473
+ activemodel (= 5.2.4.4)
474
+
475
+ activerecord (= 5.2.4.4)
476
+
477
+ activestorage (= 5.2.4.4)
478
+
479
+ activesupport (= 5.2.4.4)
480
+
481
+ bundler (>= 1.3.0)
482
+
483
+ railties (= 5.2.4.4)
484
+
485
+ sprockets-rails (>= 2.0.0)
486
+
487
+ rails-dom-testing (2.0.3)
488
+
489
+ activesupport (>= 4.2.0)
490
+
491
+ nokogiri (>= 1.6)
492
+
493
+ rails-html-sanitizer (1.3.0)
494
+
495
+ loofah (~> 2.3)
496
+
497
+ railties (5.2.4.4)
498
+
499
+ actionpack (= 5.2.4.4)
500
+
501
+ activesupport (= 5.2.4.4)
502
+
503
+ method_source
504
+
505
+ rake (>= 0.8.7)
506
+
507
+ thor (>= 0.19.0, < 2.0)
508
+
509
+ raindrops (0.19.1)
510
+
511
+ rake (13.0.1)
512
+
513
+ rb-fsevent (0.10.4)
514
+
515
+ rb-inotify (0.10.1)
516
+
517
+ ffi (~> 1.0)
518
+
519
+ regexp_parser (1.7.1)
520
+
521
+ ruby_dep (1.5.0)
522
+
523
+ ruby_parser (3.15.0)
524
+
525
+ sexp_processor (~> 4.9)
526
+
527
+ rubyzip (2.3.0)
528
+
529
+ sass (3.7.4)
530
+
531
+ sass-listen (~> 4.0.0)
532
+
533
+ sass-listen (4.0.0)
534
+
535
+ rb-fsevent (~> 0.9, >= 0.9.4)
536
+
537
+ rb-inotify (~> 0.9, >= 0.9.7)
538
+
539
+ sass-rails (5.1.0)
540
+
541
+ railties (>= 5.2.0)
542
+
543
+ sass (~> 3.1)
544
+
545
+ sprockets (>= 2.8, < 4.0)
546
+
547
+ sprockets-rails (>= 2.0, < 4.0)
548
+
549
+ tilt (>= 1.1, < 3)
550
+
551
+ selenium-webdriver (3.142.7)
552
+
553
+ childprocess (>= 0.5, < 4.0)
554
+
555
+ rubyzip (>= 1.2.2)
556
+
557
+ sexp_processor (4.15.1)
558
+
559
+ spring (2.1.1)
560
+
561
+ spring-watcher-listen (2.0.1)
562
+
563
+ listen (>= 2.7, < 4.0)
564
+
565
+ spring (>= 1.2, < 3.0)
566
+
567
+ sprockets (3.7.2)
568
+
569
+ concurrent-ruby (~> 1.0)
570
+
571
+ rack (> 1, < 3)
572
+
573
+ sprockets-rails (3.2.2)
574
+
575
+ actionpack (>= 4.0)
576
+
577
+ activesupport (>= 4.0)
578
+
579
+ sprockets (>= 3.0.0)
580
+
581
+ temple (0.8.2)
582
+
583
+ thor (1.0.1)
584
+
585
+ thread_safe (0.3.6)
586
+
587
+ tilt (2.0.10)
588
+
589
+ turbolinks (5.2.1)
590
+
591
+ turbolinks-source (~> 5.2)
592
+
593
+ turbolinks-source (5.2.0)
594
+
595
+ tzinfo (1.2.7)
596
+
597
+ thread_safe (~> 0.1)
598
+
599
+ uglifier (4.2.0)
600
+
601
+ execjs (>= 0.3.0, < 3)
602
+
603
+ unicorn (5.4.1)
604
+
605
+ kgio (~> 2.6)
606
+
607
+ raindrops (~> 0.7)
608
+
609
+ web-console (3.7.0)
610
+
611
+ actionview (>= 5.0)
612
+
613
+ activemodel (>= 5.0)
614
+
615
+ bindex (>= 0.4.0)
616
+
617
+ railties (>= 5.0)
618
+
619
+ websocket-driver (0.7.3)
620
+
621
+ websocket-extensions (>= 0.1.0)
622
+
623
+ websocket-extensions (0.1.5)
624
+
625
+ xpath (3.2.0)
626
+
627
+ nokogiri (~> 1.8)
628
+
629
+
630
+
631
+ PLATFORMS
632
+
633
+ ruby
634
+
635
+
636
+
637
+ DEPENDENCIES
638
+
639
+ bootsnap (>= 1.1.0)
640
+
641
+ byebug
642
+
643
+ capybara (>= 2.15)
644
+
645
+ chromedriver-helper
646
+
647
+ coffee-rails (~> 4.2)
648
+
649
+ haml-rails
650
+
651
+ jbuilder (~> 2.5)
652
+
653
+ listen (>= 3.0.5, < 3.2)
654
+
655
+ mysql2 (>= 0.4.4, < 0.6.0)
656
+
657
+ pry-rails
658
+
659
+ puma (~> 3.11)
660
+
661
+ rails (~> 5.2.2)
662
+
663
+ sass-rails (~> 5.0)
664
+
665
+ selenium-webdriver
666
+
667
+ spring
668
+
669
+ spring-watcher-listen (~> 2.0.0)
670
+
671
+ turbolinks (~> 5)
672
+
673
+ tzinfo-data
674
+
675
+ uglifier (>= 1.3.0)
676
+
677
+ unicorn (= 5.4.1)
678
+
679
+ web-console (>= 3.3.0)
680
+
681
+
682
+
683
+ RUBY VERSION
684
+
685
+ ruby 2.5.3p105
686
+
687
+
688
+
689
+ BUNDLED WITH
690
+
691
+ 2.1.4
692
+
693
+
694
+
695
+ ```

2

修正

2020/09/14 14:05

投稿

keisuke.F
keisuke.F

スコア19

test CHANGED
@@ -1 +1 @@
1
- 本番環境でbundle installができない
1
+ Your Ruby version is 2.5.3, but your Gemfile specified 2.5.1のエラー
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- ターミナルの[ec2-user@ip-00000000 アプリ名にて、bundle installと入力すると、下記のエラーが出ます。
7
+ ターミナルの[ec2-user@ip-00000000 リポジトリbundle installと入力すると、下記のエラーが出ます。
8
8
 
9
9
  ```
10
10
 
@@ -12,15 +12,13 @@
12
12
 
13
13
  ```
14
14
 
15
- Rubyのバージョンを変えたので起こったエラーだと思いますが、調べ2.5.3になっていると思うのです
15
+ Rubyのバージョンを変えたので起こったエラーだと思いますが、て2.5.3に書き換えました
16
16
 
17
17
 
18
18
 
19
- gem environmentで確認しても、RUBY VERSION: 2.5.3の確認ができました。
20
-
21
- ローカルでも、全ての記述を2.5.3に変えリモートにプッシュしました。
22
19
 
23
20
 
21
+ しかし、同じエラーが続きます。
24
22
 
25
23
 
26
24
 
@@ -28,40 +26,154 @@
28
26
 
29
27
 
30
28
 
29
+
30
+
31
- ローカルで
31
+ gemfile
32
32
 
33
33
  ```
34
34
 
35
- docker-compose run web bundler -v
35
+ source 'https://rubygems.org'
36
36
 
37
- ```
37
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
38
38
 
39
- を打つと、
40
39
 
41
- ```
42
40
 
43
- Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"bundler\": executable file not found in $PATH": unknown
41
+ ruby '2.5.3'
44
42
 
45
- ```
46
43
 
47
- と出ます。
48
44
 
49
- ```
45
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
50
46
 
51
- docker-compose run webを打たずに、bundler -v
47
+ gem 'rails', '~> 5.2.2'
52
48
 
53
- ```
49
+ # Use mysql as the database for Active Record
54
50
 
55
- とだけ打つと
51
+ gem 'mysql2', '>= 0.4.4', '< 0.6.0'
56
52
 
57
- ```
53
+ # Use Puma as the app server
58
54
 
59
- The `bundler' command exists in these Ruby versions:
55
+ gem 'puma', '~> 3.11'
60
56
 
57
+ # Use SCSS for stylesheets
58
+
59
+ gem 'sass-rails', '~> 5.0'
60
+
61
+ # Use Uglifier as compressor for JavaScript assets
62
+
63
+ gem 'uglifier', '>= 1.3.0'
64
+
65
+ # See https://github.com/rails/execjs#readme for more supported runtimes
66
+
67
+ # gem 'mini_racer', platforms: :ruby
68
+
69
+
70
+
71
+ # Use CoffeeScript for .coffee assets and views
72
+
73
+ gem 'coffee-rails', '~> 4.2'
74
+
75
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
76
+
77
+ gem 'turbolinks', '~> 5'
78
+
79
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
80
+
81
+ gem 'jbuilder', '~> 2.5'
82
+
83
+ # Use Redis adapter to run Action Cable in production
84
+
85
+ # gem 'redis', '~> 4.0'
86
+
87
+ # Use ActiveModel has_secure_password
88
+
89
+ # gem 'bcrypt', '~> 3.1.7'
90
+
91
+
92
+
93
+ # Use ActiveStorage variant
94
+
95
+ # gem 'mini_magick', '~> 4.8'
96
+
97
+
98
+
99
+ # Use Capistrano for deployment
100
+
101
+ # gem 'capistrano-rails', group: :development
102
+
103
+
104
+
105
+ # Reduces boot times through caching; required in config/boot.rb
106
+
107
+ gem 'bootsnap', '>= 1.1.0', require: false
108
+
109
+ gem 'haml-rails'
110
+
111
+ gem 'pry-rails'
112
+
113
+
114
+
115
+
116
+
117
+ group :development, :test do
118
+
119
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
120
+
121
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
122
+
61
- 2.5.1
123
+ end
124
+
125
+
126
+
127
+ group :development do
128
+
129
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
130
+
131
+ gem 'web-console', '>= 3.3.0'
132
+
133
+ gem 'listen', '>= 3.0.5', '< 3.2'
134
+
135
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
136
+
137
+ gem 'spring'
138
+
139
+ gem 'spring-watcher-listen', '~> 2.0.0'
140
+
141
+ end
142
+
143
+
144
+
145
+ group :test do
146
+
147
+ # Adds support for Capybara system testing and selenium driver
148
+
149
+ gem 'capybara', '>= 2.15'
150
+
151
+ gem 'selenium-webdriver'
152
+
153
+ # Easy installation and use of chromedriver to run system tests with Chrome
154
+
155
+ gem 'chromedriver-helper'
156
+
157
+ end
158
+
159
+
160
+
161
+ group :production do
162
+
163
+ gem 'unicorn', '5.4.1'
164
+
165
+ end
166
+
167
+
168
+
169
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
170
+
171
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
172
+
173
+
62
174
 
63
175
  ```
64
176
 
65
177
 
66
178
 
67
-  と出ます。
179
+ よろしくお願い致します。

1

修正

2020/09/14 11:26

投稿

keisuke.F
keisuke.F

スコア19

test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,43 @@
25
25
 
26
26
 
27
27
  何が原因なのでしょうか。
28
+
29
+
30
+
31
+ ローカルで
32
+
33
+ ```
34
+
35
+ docker-compose run web bundler -v
36
+
37
+ ```
38
+
39
+ を打つと、
40
+
41
+ ```
42
+
43
+ Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"bundler\": executable file not found in $PATH": unknown
44
+
45
+ ```
46
+
47
+ と出ます。
48
+
49
+ ```
50
+
51
+ docker-compose run webを打たずに、bundler -v
52
+
53
+ ```
54
+
55
+ とだけ打つと
56
+
57
+ ```
58
+
59
+ The `bundler' command exists in these Ruby versions:
60
+
61
+ 2.5.1
62
+
63
+ ```
64
+
65
+
66
+
67
+  と出ます。