capistrano-nginx-unicorn icon indicating copy to clipboard operation
capistrano-nginx-unicorn copied to clipboard

bundle command not found

Open evandcoleman opened this issue 10 years ago • 1 comments

I'm getting this error when trying to deploy. The bundle command works fine in other parts of my deploy (bundle install, rake db:migrate, etc.), just not in the nginx/unicorn part. Any ideas?

INFO[dc16fdfe] Running /usr/bin/env sudo /etc/init.d/nginx reload on 208.68.39.65
DEBUG[dc16fdfe] Command: ( RVM_BIN_PATH=~/.rvm/bin /usr/bin/env sudo /etc/init.d/nginx reload )
DEBUG[dc16fdfe]     Reloading nginx: [60G[
DEBUG[dc16fdfe]     [0;31mFAILED[0;39m]
DEBUG[dc16fdfe]
INFO[dc16fdfe] Finished in 0.061 seconds with exit status 0 (successful).
INFO[d929aa9c] Running /usr/bin/env sudo service unicorn_myapp_production restart on 208.68.39.65
DEBUG[d929aa9c] Command: ( RVM_BIN_PATH=~/.rvm/bin /usr/bin/env sudo service unicorn_myapp_production restart )
DEBUG[d929aa9c]     Couldn't reload, starting 'cd /home/deployer/apps/myapp/current; bundle exec unicorn -D -c /home/deployer/apps/myapp/shared/config/unicorn.rb -E production' instead
DEBUG[d929aa9c]     -bash: bundle: command not found

evandcoleman avatar Jul 09 '14 21:07 evandcoleman

Oh, the comment above the line in unicorn_init.erb says # no rvm and no rbenv then goes on to execute a bundle exec...

evandcoleman avatar Jul 10 '14 14:07 evandcoleman