在 Rails API 中部署到 heroku 时出错

Error when deploying to heroku in a Rails API

我是 Rails 上 Ruby 的初学者,我一直在努力部署到 Heroku。当我想将 Rails Api 部署到 heroku 时出现错误。我拥有的这个应用程序用作 React 前端应用程序的 API。因此,基于此,我的 Rails 应用程序没有任何视图文件夹或要预编译的资产文件,我被告知我需要在一个 Heroku 应用程序中部署我的 Rails Api 和我在另一个 heroku 应用程序中的反应。但是当我想部署我的 Rails 应用程序时,我收到以下错误消息:

remote:        Bundle completed (41.51s)
remote:        Cleaning up the bundler cache.
remote: -----> Installing node-v10.15.3-linux-x64
remote: -----> Detecting rake tasks
remote: 
remote:  !
remote:  !     Could not detect rake tasks
remote:  !     ensure you can run `$ bundle exec rake -P` against your app
remote:  !     and using the production group of your Gemfile.
remote:  !     rake aborted!
remote:  !     ArgumentError: :key is required
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/dwolla_v2-2.2.1/lib/dwolla_v2/client.rb:21:in `initialize'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/config/initializers/dwolla.rb:5:in `new'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/config/initializers/dwolla.rb:5:in `<top (required)>'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:657:in `block in load_config_initializer'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/notifications.rb:170:in `instrument'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:656:in `load_config_initializer'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:613:in `each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:613:in `block in <class:Engine>'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:50:in `each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:50:in `tsort_each_child'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:415:in `call'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `call'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/config/environment.rb:5:in `<top (required)>'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/lib/tasks/dev_seed.rake:1:in `<top (required)>'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `block in run_tasks_blocks'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `each'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `run_tasks_blocks'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:515:in `run_tasks_blocks'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:459:in `load_tasks'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/Rakefile:6:in `<top (required)>'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
remote:  !     /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
remote:  !     ./vendor/bundle/bin/rake:29:in `load'
remote:  !     ./vendor/bundle/bin/rake:29:in `<main>'
remote:  !
remote: /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
remote: ensure you can run `$ bundle exec rake -P` against your app
remote: and using the production group of your Gemfile.
remote: rake aborted!
remote: ArgumentError: :key is required
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/dwolla_v2-2.2.1/lib/dwolla_v2/client.rb:21:in `initialize'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/config/initializers/dwolla.rb:5:in `new'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/config/initializers/dwolla.rb:5:in `<top (required)>'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:657:in `block in load_config_initializer'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/notifications.rb:170:in `instrument'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:656:in `load_config_initializer'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:613:in `each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:613:in `block in <class:Engine>'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:50:in `each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:50:in `tsort_each_child'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:415:in `call'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `call'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/config/environment.rb:5:in `<top (required)>'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/lib/tasks/dev_seed.rake:1:in `<top (required)>'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `block in run_tasks_blocks'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `each'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `run_tasks_blocks'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:515:in `run_tasks_blocks'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:459:in `load_tasks'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/Rakefile:6:in `<top (required)>'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
remote: /tmp/build_0f11c72c29e3e9275e9d2167ac1b7a98/vendor/bundle/ruby/2.5.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
remote: ./vendor/bundle/bin/rake:29:in `load'
remote: ./vendor/bundle/bin/rake:29:in `<main>'
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to loop-stage.
remote: 
To https://git.heroku.com/loop-stage.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/loop-stage.git'

注意:这是一个从客户那里继承的项目,所以架构已经是这样了。

知道会出什么问题吗?

似乎参数 :key:id 的别名)没有正确传递给 DwollaV2::Client.new

dwolla-v2-ruby-v2.2.1/lib/dwolla_v2/client.rb:21

如果你在config/initializers/dwolla.rb中使用环境变量来实例化DwollaV2::Client,那么这些环境变量在heroku中是否配置正确?

https://devcenter.heroku.com/articles/config-vars#managing-config-vars

您可以按如下方式查看当前变量值:

$ heroku config:get YOUR_ENV_VAR_NAME