[英]cannot load such file — bundler/setup (LoadError) - rails c - was working 10 minutes ago
I have no Idea what has gone wrong here. 我不知道这里出了什么问题。
rails c
was working 10 minutes ago perfectly. rails c
在10分钟前完美运行。 I loaded into my production environment and for some reason the console didn't recognize one of my database tables. 我加载到生产环境中,由于某种原因,控制台无法识别我的数据库表之一。 I exited and attempted again a few more times with no luck in getting it to recognize the table, then I try one more time and poof, no more rails c.
我退出并再次尝试了几次,但没有运气让它认出桌子,然后我又尝试了一次,又po了一下,再也没有滑轨了。
I have tried a few times now uninstalling bundler, my ruby version, rvm cleanup all
, and more everything that shows online is not working. 我已经尝试过几次卸载bundler,我的ruby版本,
rvm cleanup all
,以及更多在网上显示的内容都无法正常工作。
Any help would be greatly appreciated. 任何帮助将不胜感激。 ruby 2.3.1, rails 5, bundler-1.13.6
红宝石2.3.1,导轨5,捆扎机-1.13.6
The answer was a rails 5 problem. 答案是Rails 5问题。
bundle config –delete bin rails app:update:bin
Rails 5 uses different binaries than any other rails version and thus answers for other rails versions were not giving me expected results. Rails 5使用的二进制文件与其他任何Rails版本都不相同,因此其他Rails版本的答案并没有给我带来预期的结果。 This command rebuilt the binary files in order for me to properly execute
rails c
此命令重建了二进制文件,以便我正确执行
rails c
尝试与gem install bundler加载捆绑包,可能会帮助它!
Need to check with migrations in production 需要检查生产中的迁移
rake db:migrate
after that execute bundle command 之后执行捆绑命令
bundle install
Or check with this command to run rails console in production 或检查此命令以在生产环境中运行Rails控制台
RAILS_ENV=production rails console #rails 4
rails console production #rails 3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.