I use chef to run bundle.
bash "feedbin_bundle" do
cwd "/home/ubuntu/workspace/frontend"
user "root"
group "root"
code <<-EOH
bundle install
EOH
end
Now I want to run the below as ubuntu user:
ubuntu@ubuntu:~/workspace/frontend$ rake db:setup
'git://github.com/feedbin/activerecord-import.git (at b7851b1) is not checked out. Please run `bundle install`
If I run as root all is well. How to I avoid the above error and run rake db:setup?