![](/img/trans.png)
[英]git://github.com/odorcicd/authlogic.git (at rails3) is not checked out. Please run `bundle install`
[英]Running bundler under root - git://github.com/feedbin/activerecord-import.git (at b7851b1) is not checked out. Please run `bundle install`
我用厨师来包。
bash "feedbin_bundle" do
cwd "/home/ubuntu/workspace/frontend"
user "root"
group "root"
code <<-EOH
bundle install
EOH
end
现在我想以ubuntu用户身份运行以下命令:
ubuntu@ubuntu:~/workspace/frontend$ rake db:setup
'git://github.com/feedbin/activerecord-import.git (at b7851b1) is not checked out. Please run `bundle install`
如果我以root身份运行,一切都很好。 如何避免上述错误并运行rake db:setup?
这里的问题是,你的宝石安装在用户root
,在~root/.gems
目录。 你不要这个 您有三种可能性:
/etc/gemrc
文件在系统范围内安装gems vendor
子目录中: bundle install --path=vendor/
。 这样,仅为项目安装了gem,而不会与其他项目冲突。 您应该以ubuntu
身份运行bundle install
,即要用于运行程序的同一用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.