開発環境では、rails c
が使えるのですが、本番環境では反応しません。
解決法があれば、教えていただ蹴ると幸いです!
Traceback (most recent call last): 12: from bin/rails:4:in `<main>' 11: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 10: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 9: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 8: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 7: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 6: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/commands.rb:18:in `<main>' 5: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/command.rb:46:in `invoke' 4: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/command/base.rb:69:in `perform' 3: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch' 2: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' 1: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run' /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/commands/console/console_command.rb:95:in `perform': wrong number of arguments (given 1, expected 0) (ArgumentError) 13: from bin/rails:4:in `<main>' 12: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 11: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 10: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 9: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 8: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 7: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/commands.rb:18:in `<main>' 6: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/command.rb:46:in `invoke' 5: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.4.1/lib/rails/command/base.rb:69:in `perform' 4: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch' 3: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' 2: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:20:in `run' 1: from /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:34:in `rescue in run' /Users/maedakouki/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/base.rb:525:in `handle_argument_error': ERROR: "rails console" was called with arguments ["production"] (Thor::InvocationError) Usage: "rails console [options]"
あなたの回答
tips
プレビュー