OptionParser error


#1

I’m making some changes after a couple months so naturally several gems need to be updated. I’m now encountering an error during deployment:

remote: bundler: failed to load command: jekyll (/home/diklein/.rvm/gems/ruby-2.4.2/bin/jekyll) remote: OptionParser::MissingArgument: missing argument: -d remote: /home/diklein/.rvm/gems/ruby-2.4.2/gems/mercenary-0.3.6/lib/mercenary/program.rb:31:ingo’
remote: /home/diklein/.rvm/gems/ruby-2.4.2/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program' remote: /home/diklein/.rvm/gems/ruby-2.4.2/gems/jekyll-3.7.2/exe/jekyll:15:in<top (required)>‘
remote: /home/diklein/.rvm/gems/ruby-2.4.2/bin/jekyll:23:in load' remote: /home/diklein/.rvm/gems/ruby-2.4.2/bin/jekyll:23:in<top (required)>’`

Does anyone know how to fix this?

This is the script that runs during deployment:

`GIT_REPO=$HOME/myrepo.git
TMP_GIT_CLONE=$HOME/tmp/myrepo
GEMFILE=$TMP_GIT_CLONE/Gemfile
PUBLIC_WWW=/var/www/myrepo

git clone $GIT_REPO $TMP_GIT_CLONE
BUNDLE_GEMFILE=$GEMFILE bundle install
BUNDLE_GEMFILE=$GEMFILE bundle exec jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit`