rails で新しいアプリを作ろうとrails を立ち上げた。 bundle installしてdbを作ろうとrails db:migrate をしてみたら
/Users/yosikiokada/sampleapp/config/application.rb:1:in `require_relative': cannot load such file -- /Users/yosikiokada/sampleapp/config/boot (LoadError) from /Users/yosikiokada/sampleapp/config/application.rb:1:in `<top (required)>' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application.rb:93:in `require' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application.rb:93:in `preload' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application.rb:162:in `serve' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application.rb:144:in `block in run' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application.rb:138:in `loop' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application.rb:138:in `run' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/application/boot.rb:19:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from -e:1:in `<main>'
あれ?と思いrails -v で動いてるか確かめると
/Users/yosikiokada/sampleapp/bin/rails:4:in `require_relative': cannot load such file -- /Users/yosikiokada/sampleapp/config/boot (LoadError) from /Users/yosikiokada/sampleapp/bin/rails:4:in `<top (required)>' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/client/rails.rb:30:in `load' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/client/rails.rb:30:in `call' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/client/command.rb:7:in `call' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/client.rb:30:in `run' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/bin/spring:49:in `<top (required)>' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/binstub.rb:11:in `load' from /Library/Ruby/Gems/2.6.0/gems/spring-3.1.1/lib/spring/binstub.rb:11:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /Users/yosikiokada/sampleapp/bin/spring:10:in `block in <top (required)>' from /Users/yosikiokada/sampleapp/bin/spring:7:in `tap' from /Users/yosikiokada/sampleapp/bin/spring:7:in `<top (required)>' from bin/rails:2:in `load' from bin/rails:2:in `<main>'
こうなってしまいました。確かに該当するファイルは見当たりませんがどうすれば良いのでしょうか?
あなたの回答
tips
プレビュー