To debug it try to remove the --quiet
flag:
set :bundle_flags, '--deployment'
Are you using rbenv, rvm or something similar? It might be possible that when bundle
is running the Ruby version is not set yet. By removing the --quite
flag you might get some debugging information.