Hi,
when pushing to git a remote (user: git) and executing a git post-receive hook rvm is not in the path.
I'm getting the following message when executing bundle install or rails -v in the post-receive hook:
remote: hooks/post-receive: line 37: rails: command not found
remote: hooks/post-receive: line 41: bundle: command not found
When manually adding the following to the path:
/usr/local/rvm/gems/ree-1.8.7-2012.02@gemset/bin:/usr/local/rvm/gems/ree-1.8.7-2012.02@gemset/bin:/usr/local/rvm/rubies/ree-1.8.7-2012.02/bin:/usr/local/rvm/bin
I get this message:
remote: /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [] (Gem::LoadError)
remote: from /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
remote: from /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems.rb:1231:in `gem'
remote: from /usr/local/rvm/gems/ree-1.8.7-2012.02@gemset/bin/bundle:18
remote: from /usr/local/rvm/gems/ree-1.8.7-2012.02@gemset/bin/ruby_noexec_wrapper:14
Is there another way to make rvm available in the git post-receive script? When using ssh with user git the path is there und bundle, rails -v, etc. work.
Thanks!