title: capistrano 3. executables not found
body: <p>I have simple sinatra app for tests. Now i'm testing capistrano 3 and always get such error on my task <code>deploy:restart</code>:</p>
  
  <pre><code>bash: bundle: command not found
  </code></pre>
  
  <p>my Capfile:</p>
  
  <pre><code>require 'capistrano/setup'
  require 'capistrano/deploy'
  require 'capistrano/rvm'
  require 'capistrano/bundler'
  Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r } 
  </code></pre>
  
  <p>config/deploy.rb</p>
  
  <pre><code>set :application, 'captest'
  
  set :repo_url, "https://iboltnev:password@bitbucket.org/iboltnev/simple-captest.git" 
  
  set :deploy_to, '/home/ilya/capsinatra'
  set :pty, true
  
  namespace :deploy do
  
    desc 'Start application'
    task :restart do
      on roles(:app), in: :sequence, wait: 5 do
        execute "bundle exec thin start -R app.rb"
      end 
    end 
  
  end
  </code></pre>
  
  <p>Gemfile:</p>
  
  <pre><code>source 'https://rubygems.org'
  gem 'sinatra'
  gem 'thin'
  
  group :development do
    gem 'capistrano'
    gem 'capistrano-bundler'
    gem 'capistrano-rvm'
  end
  </code></pre>
  
  <p>it seems like environment is different from my ssh-session, because i can start server with this shell command via ssh manually.<br>
  What am i doing wrong?</p>