“heroku run rails db:migrate”(LoadError)

时间:2017-12-15 23:48:54

标签: ruby-on-rails heroku deployment require

我在Railsbridge Installfest流程的最后几步中,一切顺利,直到我到达Heroku并进入部署(推送)并键入“heroku run rails db:migrate”这应该是预期的消息:

Migrating to CreateDrinks (20160706063236)
==  20160706063236 CreateDrinks: migrating =====================================
-- create_table(:drinks)
   -> 0.0084s
==  20160706063236 CreateDrinks: migrated (0.0085s) ============================

And this is the message I get instead:


 Running rails db:migrate on ⬢ immense-coast-99385... up, run.5688 (Free)
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- bundler (LoadError) from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /app/bin/spring:8:in <top (required)>' from /app/bin/rails:3:inload'
from /app/bin/rails:3:in `'

另外,当我输入

  

Heroku打开

该应用无法启动。

1 个答案:

答案 0 :(得分:0)


嗨,似乎无法找到您的捆绑商

  - 更新您的捆绑包(gem install bundler或gem update bundler)
  - 更新您的宝石(更新捆绑更新,逐一更新)
  - 再次提交并推送

希望有所帮助!