augustash / capistrano-ash

August Ash recipes for Capistrano
http://augustash.com
MIT License
73 stars 12 forks source link

compass upload_stylesheets scp fails if using non-default port #34

Closed martensc closed 11 years ago

martensc commented 11 years ago

should be able to specify the port number via -P 2222 for it to work

namespace :compass do

  desc 'Uploads compiled stylesheets to their matching watched directories'
  task :upload_stylesheets, :roles => :web, :except => { :no_release => true } do
    # ... stuff
    upload_command = "scp -r -P #{port} ./#{dir}/#{stylesheets_dir_name}/*.css #{user}@#{web_server}:#{latest_release}/#{dir}/#{stylesheets_dir_name}/"

    # ...stuff...
  end
# ... more stuff
end

see lines 461 and 473 in ash/base.rb