ArgumentError:元素数目无效(1..2为3),rake中止了

时间:2019-04-16 08:31:33

标签: ruby-on-rails heroku production

我面临一个奇怪的问题。我使用sharetribe在Rails上工作,并更改了文件中的某些值。当我执行“ git push heroku master”时,我知道得到了我之前没有的错误:

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: invalid number of elements (3 for 1..2)
remote:  !     /tmp/build_70dda8da62b1a30d22f426adaa24f35b/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6.2/lib/active_record/connection_adapters/connection_specification.rb:76:in `[]'
remote:  !     /tmp/build_70dda8da62b1a30d22f426adaa24f35b/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6.2/lib/active_record/connection_adapters/connection_specification.rb:76:in `query_hash'
remote:  !     /tmp/build_70dda8da62b1a30d22f426adaa24f35b/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6.2/lib/active_record/connection_adapters/connection_specification.rb:85:in `raw_config'

即使我变回更新的文件,也仍然会出现错误...我不在本地获取它。你知道我该如何处理吗?

我正在使用rails 2.4.4。非常感谢

0 个答案:

没有答案