From 72d98206b73526cb24c66cd3736321c1631d4ccb Mon Sep 17 00:00:00 2001 From: David Hainlin Date: Wed, 19 Aug 2009 10:34:13 -0500 Subject: [PATCH] deploy:ssh now accepts non-default ssh port number by setting SITE.port in the Sitefile --- lib/webby/tasks/deploy.rake | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/webby/tasks/deploy.rake b/lib/webby/tasks/deploy.rake index 983d2f8..23a2ccc 100644 --- a/lib/webby/tasks/deploy.rake +++ b/lib/webby/tasks/deploy.rake @@ -12,9 +12,8 @@ namespace :deploy do desc 'Deploy to the server using ssh' task :ssh do - Rake::SshDirPublisher.new( - "#{SITE.user}@#{SITE.host}", SITE.remote_dir, SITE.output_dir - ).upload + SITE.port ||= "22" + sh "scp -P #{SITE.port} -r output/* #{SITE.user}@#{SITE.host}:#{SITE.remote_dir}" end end # deploy -- 1.6.4