title: Deploy using Capistrano - is only run for servers matching
body: <p>Im trying to deploy my application using Capistrano, but I get this error message:</p>
  
  <blockquote>
    <p>`deploy:setup' is only run for servers matching {:except=>{:no_release=>true}}, but no servers matched</p>
  </blockquote>
  
  <p>When running this command:</p>
  
  <pre><code>bundle exec cap deploy:setup
  </code></pre>
  
  <p>Here is my deploy.rb file.</p>
  
  <pre><code>set :application, "example.com"
  set :repository, "git@github.com:username/repo.git"
  set :use_sudo, false
  set :scm, :git
  set :web, application
  set :app, application
  set :db, application
  set :branch, "master"
  set :user, "webmaster"
  set :deploy_to,  "/opt/www/#{application}"
  set :deploy_via, :remote_cache
  set :domain, application
  set :port, 2222
  
  set :bundler_cmd, "bundle install --deployment --without=development,test"
  ssh_options[:paranoid] = false
  
  namespace :deploy do
    task :start do ; end
    task :stop do ; end
  
    task :restart_stalker do
      run "cd #{deploy_to}/current &amp;&amp; thor stalker:kill &amp;&amp; stalker:init"
    end
  
    task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do
      run "cd #{deploy_to}/current &amp;&amp; touch tmp/restart.txt"
    end
  
    after "bundler_cmd", "deploy:restart_stalker"
  end
  </code></pre>
  
  <p>I'm using Rails 3.</p>