Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
jekyll: command not found #1155
I am having this problem with building the site after git push to remote repository and then let the post-receive hook take care of the building (as suggested in the official documentation).
Error message is:
jekyll is version: 1.0.2 (no issues during installation)
Any hints? I can not seem to solve this problem on my own.
This is what I would try (with my system's output):
$ which jekyll /Users/parker/.rbenv/shims/jekyll $ # copy the full path "/Users/parker/.rbenv/shims/jekyll" to the post-receive hook $ git push <remote> master
And see what happens! Try the full path to the jekyll executable.
It'll replace the
GIT_REPO=$HOME/git_root/blog.git TMP_GIT_CLONE=$HOME/tmp/blog PUBLIC_WWW=/var/www/virtual/***/html JEKYLL="/home/klick/.gem/ruby/1.9.1/bin/jekyll" git clone $GIT_REPO $TMP_GIT_CLONE $JEKYLL build -s $TMP_GIT_CLONE -d $PUBLIC_WWW rm -Rf $TMP_GIT_CLONE exit