On Apr 11, 2013, at 4:43 AM, henrique matias wrote:
> Hello Guys,
>
> My deploy:update is failing, perhaps cause it doesn't find "bundle" ( i see "bundle: not found" at some point in the debug log )
>
> That's my script:
http://pastebin.com/MCrDF7wZ
>
> That's the debug messages i see after executing deploy:update:
http://pastebin.com/PhCTqELi
>
> Am using rbenv, using an "app_user"..
>
> I think something to notice is that am using: default_run_options[:pty] = true ?
>
> also, setting the path with:
>
> set :default_environment, {
> "PATH" => "/home/app_user/.rbenv/shims:/home/app_user/.rbenv/bin:$PATH"
> }
>
> Any ideas? Sounds a bit stupid, but i think adding a ";" at the end of "PATH" is making things go a bit further, than without.
>
> Capistrano v2.14.2
----
what solved it for me (using rbenv) was to add this near the top of my deploy.rb
default_run_options[:shell] = '/bin/bash --login'
YMMV
Craig