如何解决“未检出 git 存储库中的 gem”的错误。请运行“捆绑安装”
一周以来,我一直在绞尽脑汁,试图让一个项目在本地运行。
bundle install
工作正常,但是当我运行 foreman start
时,出现此错误:
git://github.com/{repo_path}.git (at master)未签出。请运行“bundle install”
我已经通过 Stackoverflow 进行了搜索,但仍然无法使其工作。
操作系统:狮子 轨道:3.1.3 红宝石:1.9.3-p0 Bundler:1.0.21
有什么想法吗?
I have been tearing my hair out for a week trying to get a project to run locally.
bundle install
works fine but when I run foreman start
, I get this error:
git://github.com/{repo_path}.git (at master) is not checked out. Please run `bundle install`
I've trawled through Stackoverflow and still can't get this to work.
OS: Lion
Rails: 3.1.3
Ruby: 1.9.3-p0
Bundler: 1.0.21
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保指定您的 foreman 进程在当前捆绑程序环境中执行。应用程序根目录下的 Procfile 中的示例行:
Be sure your foreman processes are specified to execute within the current bundler environment. Example line in the Procfile in your app root:
不用说,我花了很多时间尝试一切来解决这个问题。遵循此处的所有故障排除步骤最终解决了该问题:
https://github.com/ carlhuda/bundler/blob/master/ISSUES.md
祝你好运!
Needless to say, I've spent a lot of time trying everything to fix this. Following ALL of the troubleshooting steps here finally resolved it:
https://github.com/carlhuda/bundler/blob/master/ISSUES.md
Good luck!