简体   繁体   English

无法加载此类文件-捆绑程序/安装程序(LoadError)-rails c-于10分钟前工作

[英]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.

相关问题 Ruby on Rails:错误“require”:无法加载此类文件——bundler/setup (LoadError) - Ruby on Rails: Error `require': cannot load such file -- bundler/setup (LoadError) `require':无法加载此类文件-捆绑程序/安装程序(LoadError) - `require': cannot load such file — bundler/setup (LoadError) LoadError:无法加载此类文件—捆绑程序/设置capistrano - LoadError: cannot load such file — bundler/setup capistrano 加载错误:无法加载此类文件 -- 捆绑程序/设置 - LoadError: cannot load such file -- bundler/setup Rails服务器正常工作,Rails控制台无效。 `require':无法加载此类文件-捆绑程序/安装程序(LoadError)- - Rails server works, Rails console does not. `require': cannot load such file — bundler/setup (LoadError) - Rails 4,ruby-2.0.0-p247,pow,rvm - LoadError:无法加载这样的文件 - bundler / setup - Rails 4, ruby-2.0.0-p247, pow, rvm - LoadError: cannot load such file — bundler/setup 使用NGINX的Passsenger无法加载此类文件-捆绑程序/安装程序(LoadError) - Passsenger with NGINX cannot load such file — bundler/setup (LoadError) 使用nginx的乘客:无法加载此类文件 - bundler / setup(LoadError) - Passenger with nginx: cannot load such file — bundler/setup (LoadError) docker apache passenger:错误无法加载此类文件捆绑程序/安装程序(LoadError) - docker apache passenger: error cannot load such file bundler/setup (LoadError) 无法加载此类文件 - bundler / setup(loaderror) - Passenger / Apache2 - Cannot load such file — bundler/setup (loaderror) - Passenger / Apache2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM