質問編集履歴

1

参考になりそうなファイルを追加しました

2019/11/16 04:05

投稿

BadXO
BadXO

スコア6

test CHANGED
File without changes
test CHANGED
@@ -42,6 +42,690 @@
42
42
 
43
43
 
44
44
 
45
+ 関係ありそうなファイルを貼っておきます
46
+
47
+ ```Docekrfile
48
+
49
+ FROM ruby:2.5
50
+
51
+ RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
52
+
53
+ RUN mkdir /myapp
54
+
55
+ WORKDIR /myapp
56
+
57
+ COPY Gemfile /myapp/Gemfile
58
+
59
+ COPY Gemfile.lock /myapp/Gemfile.lock
60
+
61
+ RUN bundle install
62
+
63
+ COPY . /myapp
64
+
65
+
66
+
67
+ # Add a script to be executed every time the container starts.
68
+
69
+ COPY entrypoint.sh /usr/bin/
70
+
71
+ RUN chmod +x /usr/bin/entrypoint.sh
72
+
73
+ ENTRYPOINT ["entrypoint.sh"]
74
+
75
+ EXPOSE 3000
76
+
77
+
78
+
79
+ # Start the main process.
80
+
81
+ CMD ["rails", "server", "-b", "0.0.0.0"]
82
+
83
+
84
+
85
+ ```
86
+
87
+
88
+
89
+ docker-compose.yml
90
+
91
+ ```ここに言語を入力
92
+
93
+ version: '3'
94
+
95
+ services:
96
+
97
+ db:
98
+
99
+ image: postgres
100
+
101
+ ports:
102
+
103
+ - '5432:5432'
104
+
105
+ volumes:
106
+
107
+ - postgresql-data:/var/lib/postgresql/data
108
+
109
+ web:
110
+
111
+ build: .
112
+
113
+ command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
114
+
115
+ volumes:
116
+
117
+ - .:/myapp
118
+
119
+ ports:
120
+
121
+ - "3000:3000"
122
+
123
+ depends_on:
124
+
125
+ - db
126
+
127
+ volumes:
128
+
129
+ postgresql-data:
130
+
131
+ driver: local
132
+
133
+
134
+
135
+ ```
136
+
137
+
138
+
139
+ ```Gemfile
140
+
141
+ source 'https://rubygems.org'
142
+
143
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
144
+
145
+
146
+
147
+ ruby '2.5.7'
148
+
149
+
150
+
151
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
152
+
153
+ gem 'rails', '~> 5.2.3'
154
+
155
+ # Use postgresql as the database for Active Record
156
+
157
+ gem 'pg', '>= 0.18', '< 2.0'
158
+
159
+ # Use Puma as the app server
160
+
161
+ gem 'puma', '~> 3.11'
162
+
163
+ # Use SCSS for stylesheets
164
+
165
+ gem 'sass-rails', '~> 5.0'
166
+
167
+ # Use Uglifier as compressor for JavaScript assets
168
+
169
+ gem 'uglifier', '>= 1.3.0'
170
+
171
+ # See https://github.com/rails/execjs#readme for more supported runtimes
172
+
173
+ # gem 'mini_racer', platforms: :ruby
174
+
175
+
176
+
177
+ # Use CoffeeScript for .coffee assets and views
178
+
179
+ gem 'coffee-rails', '~> 4.2'
180
+
181
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
182
+
183
+ gem 'turbolinks', '~> 5'
184
+
185
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
186
+
187
+ gem 'jbuilder', '~> 2.5'
188
+
189
+ # Use Redis adapter to run Action Cable in production
190
+
191
+ # gem 'redis', '~> 4.0'
192
+
193
+ # Use ActiveModel has_secure_password
194
+
195
+ # gem 'bcrypt', '~> 3.1.7'
196
+
197
+
198
+
199
+ # Use ActiveStorage variant
200
+
201
+ # gem 'mini_magick', '~> 4.8'
202
+
203
+
204
+
205
+ # Use Capistrano for deployment
206
+
207
+ # gem 'capistrano-rails', group: :development
208
+
209
+
210
+
211
+ # Reduces boot times through caching; required in config/boot.rb
212
+
213
+ gem 'bootsnap', '>= 1.1.0', require: false
214
+
215
+
216
+
217
+ group :development, :test do
218
+
219
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
220
+
221
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
222
+
223
+ end
224
+
225
+
226
+
227
+ group :development do
228
+
229
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
230
+
231
+ gem 'web-console', '>= 3.3.0'
232
+
233
+ gem 'listen', '>= 3.0.5', '< 3.2'
234
+
235
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
236
+
237
+ gem 'spring'
238
+
239
+ gem 'spring-watcher-listen', '~> 2.0.0'
240
+
241
+ end
242
+
243
+
244
+
245
+ group :test do
246
+
247
+ # Adds support for Capybara system testing and selenium driver
248
+
249
+ gem 'capybara', '>= 2.15'
250
+
251
+ gem 'selenium-webdriver'
252
+
253
+ # Easy installation and use of chromedriver to run system tests with Chrome
254
+
255
+ gem 'chromedriver-helper'
256
+
257
+ end
258
+
259
+
260
+
261
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
262
+
263
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
264
+
265
+ gem 'bootstrap-sass'
266
+
267
+
268
+
269
+ ```
270
+
271
+ Gemfile.lock
272
+
273
+ ```Gemfile.lock
274
+
275
+ GEM
276
+
277
+ remote: https://rubygems.org/
278
+
279
+ specs:
280
+
281
+ actioncable (5.2.3)
282
+
283
+ actionpack (= 5.2.3)
284
+
285
+ nio4r (~> 2.0)
286
+
287
+ websocket-driver (>= 0.6.1)
288
+
289
+ actionmailer (5.2.3)
290
+
291
+ actionpack (= 5.2.3)
292
+
293
+ actionview (= 5.2.3)
294
+
295
+ activejob (= 5.2.3)
296
+
297
+ mail (~> 2.5, >= 2.5.4)
298
+
299
+ rails-dom-testing (~> 2.0)
300
+
301
+ actionpack (5.2.3)
302
+
303
+ actionview (= 5.2.3)
304
+
305
+ activesupport (= 5.2.3)
306
+
307
+ rack (~> 2.0)
308
+
309
+ rack-test (>= 0.6.3)
310
+
311
+ rails-dom-testing (~> 2.0)
312
+
313
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
314
+
315
+ actionview (5.2.3)
316
+
317
+ activesupport (= 5.2.3)
318
+
319
+ builder (~> 3.1)
320
+
321
+ erubi (~> 1.4)
322
+
323
+ rails-dom-testing (~> 2.0)
324
+
325
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
326
+
327
+ activejob (5.2.3)
328
+
329
+ activesupport (= 5.2.3)
330
+
331
+ globalid (>= 0.3.6)
332
+
333
+ activemodel (5.2.3)
334
+
335
+ activesupport (= 5.2.3)
336
+
337
+ activerecord (5.2.3)
338
+
339
+ activemodel (= 5.2.3)
340
+
341
+ activesupport (= 5.2.3)
342
+
343
+ arel (>= 9.0)
344
+
345
+ activestorage (5.2.3)
346
+
347
+ actionpack (= 5.2.3)
348
+
349
+ activerecord (= 5.2.3)
350
+
351
+ marcel (~> 0.3.1)
352
+
353
+ activesupport (5.2.3)
354
+
355
+ concurrent-ruby (~> 1.0, >= 1.0.2)
356
+
357
+ i18n (>= 0.7, < 2)
358
+
359
+ minitest (~> 5.1)
360
+
361
+ tzinfo (~> 1.1)
362
+
363
+ addressable (2.7.0)
364
+
365
+ public_suffix (>= 2.0.2, < 5.0)
366
+
367
+ archive-zip (0.12.0)
368
+
369
+ io-like (~> 0.3.0)
370
+
371
+ arel (9.0.0)
372
+
373
+ autoprefixer-rails (9.7.1)
374
+
375
+ execjs
376
+
377
+ bindex (0.8.1)
378
+
379
+ bootsnap (1.4.5)
380
+
381
+ msgpack (~> 1.0)
382
+
383
+ bootstrap-sass (3.4.1)
384
+
385
+ autoprefixer-rails (>= 5.2.1)
386
+
387
+ sassc (>= 2.0.0)
388
+
389
+ builder (3.2.3)
390
+
391
+ byebug (11.0.1)
392
+
393
+ capybara (3.29.0)
394
+
395
+ addressable
396
+
397
+ mini_mime (>= 0.1.3)
398
+
399
+ nokogiri (~> 1.8)
400
+
401
+ rack (>= 1.6.0)
402
+
403
+ rack-test (>= 0.6.3)
404
+
405
+ regexp_parser (~> 1.5)
406
+
407
+ xpath (~> 3.2)
408
+
409
+ childprocess (3.0.0)
410
+
411
+ chromedriver-helper (2.1.1)
412
+
413
+ archive-zip (~> 0.10)
414
+
415
+ nokogiri (~> 1.8)
416
+
417
+ coffee-rails (4.2.2)
418
+
419
+ coffee-script (>= 2.2.0)
420
+
421
+ railties (>= 4.0.0)
422
+
423
+ coffee-script (2.4.1)
424
+
425
+ coffee-script-source
426
+
427
+ execjs
428
+
429
+ coffee-script-source (1.12.2)
430
+
431
+ concurrent-ruby (1.1.5)
432
+
433
+ crass (1.0.5)
434
+
435
+ erubi (1.9.0)
436
+
437
+ execjs (2.7.0)
438
+
439
+ ffi (1.11.2)
440
+
441
+ globalid (0.4.2)
442
+
443
+ activesupport (>= 4.2.0)
444
+
445
+ i18n (1.7.0)
446
+
447
+ concurrent-ruby (~> 1.0)
448
+
449
+ io-like (0.3.0)
450
+
451
+ jbuilder (2.9.1)
452
+
453
+ activesupport (>= 4.2.0)
454
+
455
+ listen (3.1.5)
456
+
457
+ rb-fsevent (~> 0.9, >= 0.9.4)
458
+
459
+ rb-inotify (~> 0.9, >= 0.9.7)
460
+
461
+ ruby_dep (~> 1.2)
462
+
463
+ loofah (2.3.1)
464
+
465
+ crass (~> 1.0.2)
466
+
467
+ nokogiri (>= 1.5.9)
468
+
469
+ mail (2.7.1)
470
+
471
+ mini_mime (>= 0.1.1)
472
+
473
+ marcel (0.3.3)
474
+
475
+ mimemagic (~> 0.3.2)
476
+
477
+ method_source (0.9.2)
478
+
479
+ mimemagic (0.3.3)
480
+
481
+ mini_mime (1.0.2)
482
+
483
+ mini_portile2 (2.4.0)
484
+
485
+ minitest (5.13.0)
486
+
487
+ msgpack (1.3.1)
488
+
489
+ nio4r (2.5.2)
490
+
491
+ nokogiri (1.10.5)
492
+
493
+ mini_portile2 (~> 2.4.0)
494
+
495
+ pg (1.1.4)
496
+
497
+ public_suffix (4.0.1)
498
+
499
+ puma (3.12.1)
500
+
501
+ rack (2.0.7)
502
+
503
+ rack-test (1.1.0)
504
+
505
+ rack (>= 1.0, < 3)
506
+
507
+ rails (5.2.3)
508
+
509
+ actioncable (= 5.2.3)
510
+
511
+ actionmailer (= 5.2.3)
512
+
513
+ actionpack (= 5.2.3)
514
+
515
+ actionview (= 5.2.3)
516
+
517
+ activejob (= 5.2.3)
518
+
519
+ activemodel (= 5.2.3)
520
+
521
+ activerecord (= 5.2.3)
522
+
523
+ activestorage (= 5.2.3)
524
+
525
+ activesupport (= 5.2.3)
526
+
527
+ bundler (>= 1.3.0)
528
+
529
+ railties (= 5.2.3)
530
+
531
+ sprockets-rails (>= 2.0.0)
532
+
533
+ rails-dom-testing (2.0.3)
534
+
535
+ activesupport (>= 4.2.0)
536
+
537
+ nokogiri (>= 1.6)
538
+
539
+ rails-html-sanitizer (1.3.0)
540
+
541
+ loofah (~> 2.3)
542
+
543
+ railties (5.2.3)
544
+
545
+ actionpack (= 5.2.3)
546
+
547
+ activesupport (= 5.2.3)
548
+
549
+ method_source
550
+
551
+ rake (>= 0.8.7)
552
+
553
+ thor (>= 0.19.0, < 2.0)
554
+
555
+ rake (13.0.1)
556
+
557
+ rb-fsevent (0.10.3)
558
+
559
+ rb-inotify (0.10.0)
560
+
561
+ ffi (~> 1.0)
562
+
563
+ regexp_parser (1.6.0)
564
+
565
+ ruby_dep (1.5.0)
566
+
567
+ rubyzip (2.0.0)
568
+
569
+ sass (3.7.4)
570
+
571
+ sass-listen (~> 4.0.0)
572
+
573
+ sass-listen (4.0.0)
574
+
575
+ rb-fsevent (~> 0.9, >= 0.9.4)
576
+
577
+ rb-inotify (~> 0.9, >= 0.9.7)
578
+
579
+ sass-rails (5.1.0)
580
+
581
+ railties (>= 5.2.0)
582
+
583
+ sass (~> 3.1)
584
+
585
+ sprockets (>= 2.8, < 4.0)
586
+
587
+ sprockets-rails (>= 2.0, < 4.0)
588
+
589
+ tilt (>= 1.1, < 3)
590
+
591
+ sassc (2.2.1)
592
+
593
+ ffi (~> 1.9)
594
+
595
+ selenium-webdriver (3.142.6)
596
+
597
+ childprocess (>= 0.5, < 4.0)
598
+
599
+ rubyzip (>= 1.2.2)
600
+
601
+ spring (2.1.0)
602
+
603
+ spring-watcher-listen (2.0.1)
604
+
605
+ listen (>= 2.7, < 4.0)
606
+
607
+ spring (>= 1.2, < 3.0)
608
+
609
+ sprockets (3.7.2)
610
+
611
+ concurrent-ruby (~> 1.0)
612
+
613
+ rack (> 1, < 3)
614
+
615
+ sprockets-rails (3.2.1)
616
+
617
+ actionpack (>= 4.0)
618
+
619
+ activesupport (>= 4.0)
620
+
621
+ sprockets (>= 3.0.0)
622
+
623
+ thor (0.20.3)
624
+
625
+ thread_safe (0.3.6)
626
+
627
+ tilt (2.0.10)
628
+
629
+ turbolinks (5.2.1)
630
+
631
+ turbolinks-source (~> 5.2)
632
+
633
+ turbolinks-source (5.2.0)
634
+
635
+ tzinfo (1.2.5)
636
+
637
+ thread_safe (~> 0.1)
638
+
639
+ uglifier (4.2.0)
640
+
641
+ execjs (>= 0.3.0, < 3)
642
+
643
+ web-console (3.7.0)
644
+
645
+ actionview (>= 5.0)
646
+
647
+ activemodel (>= 5.0)
648
+
649
+ bindex (>= 0.4.0)
650
+
651
+ railties (>= 5.0)
652
+
653
+ websocket-driver (0.7.1)
654
+
655
+ websocket-extensions (>= 0.1.0)
656
+
657
+ websocket-extensions (0.1.4)
658
+
659
+ xpath (3.2.0)
660
+
661
+ nokogiri (~> 1.8)
662
+
663
+
664
+
665
+ PLATFORMS
666
+
667
+ ruby
668
+
669
+
670
+
671
+ DEPENDENCIES
672
+
673
+ bootsnap (>= 1.1.0)
674
+
675
+ bootstrap-sass
676
+
677
+ byebug
678
+
679
+ capybara (>= 2.15)
680
+
681
+ chromedriver-helper
682
+
683
+ coffee-rails (~> 4.2)
684
+
685
+ jbuilder (~> 2.5)
686
+
687
+ listen (>= 3.0.5, < 3.2)
688
+
689
+ pg (>= 0.18, < 2.0)
690
+
691
+ puma (~> 3.11)
692
+
693
+ rails (~> 5.2.3)
694
+
695
+ sass-rails (~> 5.0)
696
+
697
+ selenium-webdriver
698
+
699
+ spring
700
+
701
+ spring-watcher-listen (~> 2.0.0)
702
+
703
+ turbolinks (~> 5)
704
+
705
+ tzinfo-data
706
+
707
+ uglifier (>= 1.3.0)
708
+
709
+ web-console (>= 3.3.0)
710
+
711
+
712
+
713
+ RUBY VERSION
714
+
715
+ ruby 2.5.7p206
716
+
717
+
718
+
719
+ BUNDLED WITH
720
+
721
+ 1.17.3
722
+
723
+
724
+
725
+ ```
726
+
727
+
728
+
45
729
  どのような問題でどうすれば解決できるのでしょうか?
46
730
 
47
731
  曖昧な質問ですが回答頂けるとありがたいです。