ruby-on-rails – 捆绑安装错误
发布时间:2020-12-17 01:47:28 所属栏目:百科 来源:网络整理
导读:当我移动我的网站做服务器并尝试捆绑安装时,我有这个错误.那意味着什么?我该做什么? Git error: command `git reset --hard a9949c1524205928b18597f840e83478ba97c2ef` in directory/usr/local/rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-a9949
当我移动我的网站做服务器并尝试捆绑安装时,我有这个错误.那意味着什么?我该做什么?
Git error: command `git reset --hard a9949c1524205928b18597f840e83478ba97c2ef` in directory /usr/local/rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-a9949c152420 has failed. If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-1.9.3-p448/cache/bundler/git/active_admin- d67faab65e9b74efbc8efb4a777a851e9f78b2ca' 而下一个错误: fatal: ambiguous argument 'rails4': unknown revision or path not in the working tree. Use '--' to separate paths from revisions Git error: command `git rev-parse rails4` in directory /usr/local/rvm/gems/ruby-1.9.3-p448/cache/bundler/git/friendly_id- b6cdf0f76c0a31f3c34bb36c76f8ce70e1d6196b has failed. 解决方法
这发生在我身上,因为在Github上为active_admin项目删除了rails4分支.但是,根据
documentation,您仍然必须使用Rails 4的主分支.
所以改变你的Gemfile gem 'activeadmin',github: 'gregbell/active_admin',branch: 'rails4' 至 gem 'activeadmin',github: 'gregbell/active_admin' (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |