Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Can';不要进入Heroku Rails控制台_Ruby On Rails_Ruby_Heroku_Rails Console_Heroku Cli - Fatal编程技术网

Ruby on rails Can';不要进入Heroku Rails控制台

Ruby on rails Can';不要进入Heroku Rails控制台,ruby-on-rails,ruby,heroku,rails-console,heroku-cli,Ruby On Rails,Ruby,Heroku,Rails Console,Heroku Cli,我目前正在开发一个RubyonRails应用程序。我的Heroku和rails已更新至最新版本,我的应用程序在Heroku上功能齐全。我目前使用的API有引导、Carrierwave、AWS S3和Stripe 每次运行Heroku run rails console时,我都会遇到以下错误: 31: from /app/bin/rails:9:in `<main>' 30: from /app/vendor/bundle/ruby/2.5.0/gems

我目前正在开发一个RubyonRails应用程序。我的Heroku和rails已更新至最新版本,我的应用程序在Heroku上功能齐全。我目前使用的API有引导、Carrierwave、AWS S3和Stripe

每次运行Heroku run rails console时,我都会遇到以下错误:

        31: from /app/bin/rails:9:in `<main>'
        30: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        29: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
        28: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        27: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
        26: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
        25: from /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/commands.rb:18:in `<top (required)>'
        24: from /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command.rb:46:in `invoke'
        23: from /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command/base.rb:69:in `perform'
        22: from /app/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        21: from /app/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        20: from /app/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        19: from /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/commands/console/console_command.rb:95:in `perform'
        18: from /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
        17: from /app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command/actions.rb:22:in `require_application!'
        16: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        15: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
        14: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        13: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
        12: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
        11: from /app/config/application.rb:2:in `<top (required)>'
        10: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
         9: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
         8: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
         7: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
         6: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
         5: from /app/vendor/bundle/ruby/2.5.0/gems/carrierwave-2.0.2/lib/carrierwave.rb:59:in `<top (required)>'
         4: from /app/vendor/bundle/ruby/2.5.0/gems/carrierwave-2.0.2/lib/carrierwave.rb:60:in `<module:CarrierWave>'
         3: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant'
         2: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant'
         1: from /app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant': uninitialized constant Rails::Railtie (NameError)
31:from/app/bin/rails:9:in`'
30:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:30:in'require'
29:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in“require_with_bootsnap_lfi”
28:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in'register'
27:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:22:in`block in require\u with\u bootsnap\u lfi'
26:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:22:in'require'
25:from/app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/commands.rb:18:in`'
24:from/app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command.rb:46:in'invoke'
23:from/app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command/base.rb:69:in'perform'
22:from/app/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in'dispatch'
21:from/app/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in“invoke_命令”
20:from/app/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in'run'
19:from/app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/commands/console/console_command.rb:95:in'perform'
18:from/app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command/actions.rb:14:in“require\u application\u and\u environment!”
17:from/app/vendor/bundle/ruby/2.5.0/gems/railties-5.2.4/lib/rails/command/actions.rb:22:in'require_application!'
16:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:30:in'require'
15:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in“require_with_bootsnap_lfi”
14:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in'register'
13:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:22:in`block in require\u with\u bootsnap\u lfi'
12:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:22:in'require'
11:from/app/config/application.rb:2:in`'
10:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:30:in'require'
9:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in“require_with_bootsnap_lfi”
8:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in'register'
7:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:22:in`block in require\u with\u bootsnap\u lfi'
6:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:22:in'require'
5:from/app/vendor/bundle/ruby/2.5.0/gems/carrierwave-2.0.2/lib/carrierwave.rb:59:in`'
4:from/app/vendor/bundle/ruby/2.5.0/gems/carrierwave-2.0.2/lib/carrierwave.rb:60:in`'
3:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in'load_missing_constant'
2:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in“rescue in load_missing_constant”
1:from/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in'without_bootsnap_cache'
/app/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load\u path\u cache/core\u ext/active\u support.rb:79:“加载中的块缺少常量”:未初始化常量Rails::Railtie(NameError)

这可能是由于Rails gem文件的更新引起的。请检查Rails版本并使用bundle update更新GEM文件。@SantoshAryal感谢您的建议,我运行了
bundle update
,所有内容都已更新,没有任何问题,但我的错误根本没有改变。