I just deploy jekyll in a vps, and config git post-receive hook on it. When I push blog update to vps from my laptop, I run into this error:
remote: /usr/bin/env: ruby_executable_hooks: No such file or directory
rvm @global do gem regenerate_binstubs
use wrappers, example:
$ which jekyll # /path/to/rvm/gems/ruby-version/bin/jekyll
in the returned path replace
wrappers so you get:
this is a script that will load proper environment and fix your problem, wrappers are generated automatically withing RVM.