Bundle errors only from remote?


#1

Weird issue I’m experiencing.

I have a VPS setup for my site. On the VPS I have a bare git repo and a post-receive script configured to copy the site to a tmp folder then generate the site to root directory for nginx.

So everything works fine if I run sh post-receive via ssh locally on the VPS but if I push to the server it won’t rebuild.

remote: bundler: failed to load command: jekyll (/usr/local/bin/jekyll)
remote: Bundler::GemNotFound: Could not find coderay-1.1.1 in any of the sources
remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:88:in block in materialize' remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:82:inmap!’
remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/spec_set.rb:82:in materialize' remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/definition.rb:170:inspecs’
remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/definition.rb:237:in specs_for' remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/definition.rb:226:inrequested_specs’
remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:108:in block in definition_method' remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:20:insetup’
remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler.rb:107:in setup' remote: /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/setup.rb:20:in<top (required)>’
remote: /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' remote: /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire’

Am I missing something… I feel like it’s simple …