capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

bundle: command not found #67

Closed Zhong-z closed 9 years ago

Zhong-z commented 9 years ago

bundle_unicorn method seems not using bundle installed from rbenv when deploying

INFO [31c3caec] Running /usr/bin/env service unicorn_abc_staging restart as root@111.111.111.111
DEBUG [31c3caec] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 /usr/bin/env service unicorn_abc_staging restart )
DEBUG [31c3caec]    Couldn't reload, starting 'cd /var/www/abc/current; bundle exec unicorn -D -c /var/www/abc/shared/config/unicorn.rb -E staging' instead
DEBUG [31c3caec]    stdin: is not a tty
DEBUG [31c3caec]    -su: bundle: command not found

I tried the same commands manually, unicorn servers starts without any errors.

Zhong-z commented 9 years ago

ln rbenv bundle to /usr/bin solves problem