質問編集履歴

4

解決

2020/07/17 14:10

投稿

psc
psc

スコア11

test CHANGED
File without changes
test CHANGED
@@ -361,3 +361,13 @@
361
361
  * bin/rails: Spring inserted
362
362
 
363
363
  ```
364
+
365
+
366
+
367
+ [2020/7/17 追記]
368
+
369
+ 解決しました!
370
+
371
+ - 最初のエラーは docker-compose down 後に解決
372
+
373
+ - Rails newが通ったのにファイルが生成されていない問題は、WSL環境だとDocker-compose.ymlでのvolume設定でローカルディレクトリを指定するとき相対パスが使えないことに原因があったようです。絶対パスで修正したらファイル生成ができました。

3

ログの不要部を削除

2020/07/17 14:10

投稿

psc
psc

スコア11

test CHANGED
File without changes
test CHANGED
@@ -292,223 +292,7 @@
292
292
 
293
293
  Using i18n 1.8.3
294
294
 
295
- Using minitest 5.14.1
296
-
297
- Using thread_safe 0.3.6
298
-
299
- Using tzinfo 1.2.7
300
-
301
- Using activesupport 5.2.4.3
302
-
303
- Using builder 3.2.4
304
-
305
- Using erubi 1.9.0
306
-
307
- Using mini_portile2 2.4.0
308
-
309
- Using nokogiri 1.10.10
310
-
311
- Using rails-dom-testing 2.0.3
312
-
313
- Using crass 1.0.6
314
-
315
- Using loofah 2.6.0
316
-
317
- Using rails-html-sanitizer 1.3.0
318
-
319
- Using actionview 5.2.4.3
320
-
321
- Using rack 2.2.3
295
+ (略)
322
-
323
- Using rack-test 1.1.0
324
-
325
- Using actionpack 5.2.4.3
326
-
327
- Using nio4r 2.5.2
328
-
329
- Using websocket-extensions 0.1.5
330
-
331
- Using websocket-driver 0.7.3
332
-
333
- Using actioncable 5.2.4.3
334
-
335
- Using globalid 0.4.2
336
-
337
- Using activejob 5.2.4.3
338
-
339
- Using mini_mime 1.0.2
340
-
341
- Using mail 2.7.1
342
-
343
- Using actionmailer 5.2.4.3
344
-
345
- Using activemodel 5.2.4.3
346
-
347
- Using arel 9.0.0
348
-
349
- Using activerecord 5.2.4.3
350
-
351
- Using mimemagic 0.3.5
352
-
353
- Using marcel 0.3.3
354
-
355
- Using activestorage 5.2.4.3
356
-
357
- Fetching public_suffix 4.0.5
358
-
359
- Installing public_suffix 4.0.5
360
-
361
- Fetching addressable 2.7.0
362
-
363
- Installing addressable 2.7.0
364
-
365
- Fetching io-like 0.3.1
366
-
367
- Installing io-like 0.3.1
368
-
369
- Fetching archive-zip 0.12.0
370
-
371
- Installing archive-zip 0.12.0
372
-
373
- Fetching bindex 0.8.1
374
-
375
- Installing bindex 0.8.1 with native extensions
376
-
377
- Fetching msgpack 1.3.3
378
-
379
- Installing msgpack 1.3.3 with native extensions
380
-
381
- Fetching bootsnap 1.4.6
382
-
383
- Installing bootsnap 1.4.6 with native extensions
384
-
385
- Using bundler 2.1.4
386
-
387
- Fetching byebug 11.1.3
388
-
389
- Installing byebug 11.1.3 with native extensions
390
-
391
- Fetching regexp_parser 1.7.1
392
-
393
- Installing regexp_parser 1.7.1
394
-
395
- Fetching xpath 3.2.0
396
-
397
- Installing xpath 3.2.0
398
-
399
- Fetching capybara 3.33.0
400
-
401
- Installing capybara 3.33.0
402
-
403
- Fetching childprocess 3.0.0
404
-
405
- Installing childprocess 3.0.0
406
-
407
- Fetching chromedriver-helper 2.1.1
408
-
409
- Installing chromedriver-helper 2.1.1
410
-
411
- Fetching coffee-script-source 1.12.2
412
-
413
- Installing coffee-script-source 1.12.2
414
-
415
- Fetching execjs 2.7.0
416
-
417
- Installing execjs 2.7.0
418
-
419
- Fetching coffee-script 2.4.1
420
-
421
- Installing coffee-script 2.4.1
422
-
423
- Using method_source 1.0.0
424
-
425
- Using thor 1.0.1
426
-
427
- Using railties 5.2.4.3
428
-
429
- Fetching coffee-rails 4.2.2
430
-
431
- Installing coffee-rails 4.2.2
432
-
433
- Fetching ffi 1.13.1
434
-
435
- Installing ffi 1.13.1 with native extensions
436
-
437
- Fetching jbuilder 2.10.0
438
-
439
- Installing jbuilder 2.10.0
440
-
441
- Fetching rb-fsevent 0.10.4
442
-
443
- Installing rb-fsevent 0.10.4
444
-
445
- Fetching rb-inotify 0.10.1
446
-
447
- Installing rb-inotify 0.10.1
448
-
449
- Fetching ruby_dep 1.5.0
450
-
451
- Installing ruby_dep 1.5.0
452
-
453
- Fetching listen 3.1.5
454
-
455
- Installing listen 3.1.5
456
-
457
- Fetching pg 1.2.3
458
-
459
- Installing pg 1.2.3 with native extensions
460
-
461
- Fetching puma 3.12.6
462
-
463
- Installing puma 3.12.6 with native extensions
464
-
465
- Fetching sprockets 3.7.2
466
-
467
- Installing sprockets 3.7.2
468
-
469
- Using sprockets-rails 3.2.1
470
-
471
- Using rails 5.2.4.3
472
-
473
- Fetching rubyzip 2.3.0
474
-
475
- Installing rubyzip 2.3.0
476
-
477
- Fetching sass-listen 4.0.0
478
-
479
- Installing sass-listen 4.0.0
480
-
481
- Fetching sass 3.7.4
482
-
483
- Installing sass 3.7.4
484
-
485
- Fetching tilt 2.0.10
486
-
487
- Installing tilt 2.0.10
488
-
489
- Fetching sass-rails 5.1.0
490
-
491
- Installing sass-rails 5.1.0
492
-
493
- Fetching selenium-webdriver 3.142.7
494
-
495
- Installing selenium-webdriver 3.142.7
496
-
497
- Fetching spring 2.1.0
498
-
499
- Installing spring 2.1.0
500
-
501
- Fetching spring-watcher-listen 2.0.1
502
-
503
- Installing spring-watcher-listen 2.0.1
504
-
505
- Fetching turbolinks-source 5.2.0
506
-
507
- Installing turbolinks-source 5.2.0
508
-
509
- Fetching turbolinks 5.2.1
510
-
511
- Installing turbolinks 5.2.1
512
296
 
513
297
  Fetching uglifier 4.2.0
514
298
 

2

記法の修正

2020/07/15 12:46

投稿

psc
psc

スコア11

test CHANGED
File without changes
test CHANGED
@@ -202,13 +202,17 @@
202
202
 
203
203
  プロジェクトファイルをいくつかfindしてみるなどで探してみてもプロジェクトファイルらしきものは見当たりませんでしたので、おそらくどこかでRails new が失敗しているのでしょうか?
204
204
 
205
+
206
+
205
207
  ログを見てもエラーは見当たらない(見逃しているだけでしたら申し訳ありません)ようなので、
206
208
 
207
209
  何が原因かまだ自力でたどり着けておりません…。
208
210
 
209
211
 
210
212
 
211
- ```
213
+ ▼ログ
214
+
215
+ ```consolelog
212
216
 
213
217
  Successfully tagged (アプリ名)_web:latest
214
218
 

1

Rails newがうまくいっていないように見える件について追記しました

2020/07/15 12:41

投稿

psc
psc

スコア11

test CHANGED
File without changes
test CHANGED
@@ -181,3 +181,395 @@
181
181
 
182
182
 
183
183
  お手数ですがどなたかお知恵をお借りできると幸いです。
184
+
185
+
186
+
187
+ ## 追記
188
+
189
+ y_shinodaさんに追記頂いた手順でやってみたのですが、
190
+
191
+ 以下のようにcreate...のログが出ておりRails newできたように一見見えたものの、
192
+
193
+ 実行後/myapp にマウントしているローカルディレクトリにはプロジェクトファイルができていませんでした。
194
+
195
+ (Gemfileも最初のものから書き換わっていません)
196
+
197
+
198
+
199
+ ディレクトリのマウントがうまくいっていないのかと思い、
200
+
201
+ 停止したコンテナに入って/myapp 以下をls -la してみる、
202
+
203
+ プロジェクトファイルをいくつかfindしてみるなどで探してみてもプロジェクトファイルらしきものは見当たりませんでしたので、おそらくどこかでRails new が失敗しているのでしょうか?
204
+
205
+ ログを見てもエラーは見当たらない(見逃しているだけでしたら申し訳ありません)ようなので、
206
+
207
+ 何が原因かまだ自力でたどり着けておりません…。
208
+
209
+
210
+
211
+ ```
212
+
213
+ Successfully tagged (アプリ名)_web:latest
214
+
215
+ WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
216
+
217
+ exist
218
+
219
+ create README.md
220
+
221
+ create Rakefile
222
+
223
+ create .ruby-version
224
+
225
+ create config.ru
226
+
227
+ create .gitignore
228
+
229
+ create Gemfile
230
+
231
+ run git init from "."
232
+
233
+ Initialized empty Git repository in /myapp/.git/
234
+
235
+ create package.json
236
+
237
+ create app
238
+
239
+ create app/assets/config/manifest.js
240
+
241
+ create app/assets/javascripts/application.js
242
+
243
+ (略)
244
+
245
+ append .gitignore
246
+
247
+ /usr/local/bundle/gems/activesupport-5.2.4.3/lib/active_support/message_encryptor.rb:175: warning: Using the last argument
248
+
249
+ as keyword parameters is deprecated; maybe ** should be added to the call
250
+
251
+ /usr/local/bundle/gems/activesupport-5.2.4.3/lib/active_support/messages/metadata.rb:17: warning: The called method `wrap'
252
+
253
+ is defined here
254
+
255
+ create config/boot.rb
256
+
257
+ create config/database.yml
258
+
259
+ create db
260
+
261
+ (略)
262
+
263
+ create storage
264
+
265
+ create storage/.keep
266
+
267
+ create tmp/storage
268
+
269
+ create tmp/storage/.keep
270
+
271
+ remove config/initializers/cors.rb
272
+
273
+ remove config/initializers/new_framework_defaults_5_2.rb
274
+
275
+ run bundle install
276
+
277
+ The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
278
+
279
+ Fetching gem metadata from https://rubygems.org/............
280
+
281
+ Fetching gem metadata from https://rubygems.org/.
282
+
283
+ Resolving dependencies...
284
+
285
+ Using rake 13.0.1
286
+
287
+ Using concurrent-ruby 1.1.6
288
+
289
+ Using i18n 1.8.3
290
+
291
+ Using minitest 5.14.1
292
+
293
+ Using thread_safe 0.3.6
294
+
295
+ Using tzinfo 1.2.7
296
+
297
+ Using activesupport 5.2.4.3
298
+
299
+ Using builder 3.2.4
300
+
301
+ Using erubi 1.9.0
302
+
303
+ Using mini_portile2 2.4.0
304
+
305
+ Using nokogiri 1.10.10
306
+
307
+ Using rails-dom-testing 2.0.3
308
+
309
+ Using crass 1.0.6
310
+
311
+ Using loofah 2.6.0
312
+
313
+ Using rails-html-sanitizer 1.3.0
314
+
315
+ Using actionview 5.2.4.3
316
+
317
+ Using rack 2.2.3
318
+
319
+ Using rack-test 1.1.0
320
+
321
+ Using actionpack 5.2.4.3
322
+
323
+ Using nio4r 2.5.2
324
+
325
+ Using websocket-extensions 0.1.5
326
+
327
+ Using websocket-driver 0.7.3
328
+
329
+ Using actioncable 5.2.4.3
330
+
331
+ Using globalid 0.4.2
332
+
333
+ Using activejob 5.2.4.3
334
+
335
+ Using mini_mime 1.0.2
336
+
337
+ Using mail 2.7.1
338
+
339
+ Using actionmailer 5.2.4.3
340
+
341
+ Using activemodel 5.2.4.3
342
+
343
+ Using arel 9.0.0
344
+
345
+ Using activerecord 5.2.4.3
346
+
347
+ Using mimemagic 0.3.5
348
+
349
+ Using marcel 0.3.3
350
+
351
+ Using activestorage 5.2.4.3
352
+
353
+ Fetching public_suffix 4.0.5
354
+
355
+ Installing public_suffix 4.0.5
356
+
357
+ Fetching addressable 2.7.0
358
+
359
+ Installing addressable 2.7.0
360
+
361
+ Fetching io-like 0.3.1
362
+
363
+ Installing io-like 0.3.1
364
+
365
+ Fetching archive-zip 0.12.0
366
+
367
+ Installing archive-zip 0.12.0
368
+
369
+ Fetching bindex 0.8.1
370
+
371
+ Installing bindex 0.8.1 with native extensions
372
+
373
+ Fetching msgpack 1.3.3
374
+
375
+ Installing msgpack 1.3.3 with native extensions
376
+
377
+ Fetching bootsnap 1.4.6
378
+
379
+ Installing bootsnap 1.4.6 with native extensions
380
+
381
+ Using bundler 2.1.4
382
+
383
+ Fetching byebug 11.1.3
384
+
385
+ Installing byebug 11.1.3 with native extensions
386
+
387
+ Fetching regexp_parser 1.7.1
388
+
389
+ Installing regexp_parser 1.7.1
390
+
391
+ Fetching xpath 3.2.0
392
+
393
+ Installing xpath 3.2.0
394
+
395
+ Fetching capybara 3.33.0
396
+
397
+ Installing capybara 3.33.0
398
+
399
+ Fetching childprocess 3.0.0
400
+
401
+ Installing childprocess 3.0.0
402
+
403
+ Fetching chromedriver-helper 2.1.1
404
+
405
+ Installing chromedriver-helper 2.1.1
406
+
407
+ Fetching coffee-script-source 1.12.2
408
+
409
+ Installing coffee-script-source 1.12.2
410
+
411
+ Fetching execjs 2.7.0
412
+
413
+ Installing execjs 2.7.0
414
+
415
+ Fetching coffee-script 2.4.1
416
+
417
+ Installing coffee-script 2.4.1
418
+
419
+ Using method_source 1.0.0
420
+
421
+ Using thor 1.0.1
422
+
423
+ Using railties 5.2.4.3
424
+
425
+ Fetching coffee-rails 4.2.2
426
+
427
+ Installing coffee-rails 4.2.2
428
+
429
+ Fetching ffi 1.13.1
430
+
431
+ Installing ffi 1.13.1 with native extensions
432
+
433
+ Fetching jbuilder 2.10.0
434
+
435
+ Installing jbuilder 2.10.0
436
+
437
+ Fetching rb-fsevent 0.10.4
438
+
439
+ Installing rb-fsevent 0.10.4
440
+
441
+ Fetching rb-inotify 0.10.1
442
+
443
+ Installing rb-inotify 0.10.1
444
+
445
+ Fetching ruby_dep 1.5.0
446
+
447
+ Installing ruby_dep 1.5.0
448
+
449
+ Fetching listen 3.1.5
450
+
451
+ Installing listen 3.1.5
452
+
453
+ Fetching pg 1.2.3
454
+
455
+ Installing pg 1.2.3 with native extensions
456
+
457
+ Fetching puma 3.12.6
458
+
459
+ Installing puma 3.12.6 with native extensions
460
+
461
+ Fetching sprockets 3.7.2
462
+
463
+ Installing sprockets 3.7.2
464
+
465
+ Using sprockets-rails 3.2.1
466
+
467
+ Using rails 5.2.4.3
468
+
469
+ Fetching rubyzip 2.3.0
470
+
471
+ Installing rubyzip 2.3.0
472
+
473
+ Fetching sass-listen 4.0.0
474
+
475
+ Installing sass-listen 4.0.0
476
+
477
+ Fetching sass 3.7.4
478
+
479
+ Installing sass 3.7.4
480
+
481
+ Fetching tilt 2.0.10
482
+
483
+ Installing tilt 2.0.10
484
+
485
+ Fetching sass-rails 5.1.0
486
+
487
+ Installing sass-rails 5.1.0
488
+
489
+ Fetching selenium-webdriver 3.142.7
490
+
491
+ Installing selenium-webdriver 3.142.7
492
+
493
+ Fetching spring 2.1.0
494
+
495
+ Installing spring 2.1.0
496
+
497
+ Fetching spring-watcher-listen 2.0.1
498
+
499
+ Installing spring-watcher-listen 2.0.1
500
+
501
+ Fetching turbolinks-source 5.2.0
502
+
503
+ Installing turbolinks-source 5.2.0
504
+
505
+ Fetching turbolinks 5.2.1
506
+
507
+ Installing turbolinks 5.2.1
508
+
509
+ Fetching uglifier 4.2.0
510
+
511
+ Installing uglifier 4.2.0
512
+
513
+ Fetching web-console 3.7.0
514
+
515
+ Installing web-console 3.7.0
516
+
517
+ Bundle complete! 18 Gemfile dependencies, 78 gems now installed.
518
+
519
+ Use `bundle info [gemname]` to see where a bundled gem is installed.
520
+
521
+ Post-install message from chromedriver-helper:
522
+
523
+
524
+
525
+ +--------------------------------------------------------------------+
526
+
527
+ | |
528
+
529
+ | NOTICE: chromedriver-helper is deprecated after 2019-03-31. |
530
+
531
+ | |
532
+
533
+ | Please update to use the 'webdrivers' gem instead. |
534
+
535
+ | See https://github.com/flavorjones/chromedriver-helper/issues/83 |
536
+
537
+ | |
538
+
539
+ +--------------------------------------------------------------------+
540
+
541
+
542
+
543
+ Post-install message from sass:
544
+
545
+
546
+
547
+ Ruby Sass has reached end-of-life and should no longer be used.
548
+
549
+
550
+
551
+ * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
552
+
553
+ primary implementation: https://sass-lang.com/install
554
+
555
+
556
+
557
+ * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
558
+
559
+ sassc gem: https://github.com/sass/sassc-ruby#readme
560
+
561
+
562
+
563
+ * For more details, please refer to the Sass blog:
564
+
565
+ https://sass-lang.com/blog/posts/7828841
566
+
567
+
568
+
569
+ run bundle exec spring binstub --all
570
+
571
+ * bin/rake: Spring inserted
572
+
573
+ * bin/rails: Spring inserted
574
+
575
+ ```