From a4177e1471a649c51ddb6def3aa6be0352056d4a Mon Sep 17 00:00:00 2001 From: Manu Date: Mon, 26 Sep 2011 00:13:42 +0300 Subject: [PATCH 1/2] Changed it so the ssh port is configurable as well. (As I ran into the same issue already described at https://github.com/imathis/octopress/issues/30 ) --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index eb91e37..a74d51b 100644 --- a/Rakefile +++ b/Rakefile @@ -5,6 +5,7 @@ require "stringex" ## -- Rsync Deploy config -- ## # Be sure your public key is listed in your server's ~/.ssh/authorized_keys file ssh_user = "user@domain.com" +ssh_port = "22" document_root = "~/website.com/" deploy_default = "rsync" @@ -218,7 +219,7 @@ end desc "Deploy website via rsync" task :rsync do puts "## Deploying website via Rsync" - ok_failed system("rsync -avz --delete #{public_dir}/ #{ssh_user}:#{document_root}") + ok_failed system("rsync -avze 'ssh -p {ssh_port}' --delete #{public_dir}/ #{ssh_user}:#{document_root}") end desc "deploy public directory to github pages" From af1f2af48f4e6cc49b9c619654e5038f2353955f Mon Sep 17 00:00:00 2001 From: Manu Date: Mon, 26 Sep 2011 00:16:15 +0300 Subject: [PATCH 2/2] Typo. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a74d51b..20c618e 100644 --- a/Rakefile +++ b/Rakefile @@ -219,7 +219,7 @@ end desc "Deploy website via rsync" task :rsync do puts "## Deploying website via Rsync" - ok_failed system("rsync -avze 'ssh -p {ssh_port}' --delete #{public_dir}/ #{ssh_user}:#{document_root}") + ok_failed system("rsync -avze 'ssh -p #{ssh_port}' --delete #{public_dir}/ #{ssh_user}:#{document_root}") end desc "deploy public directory to github pages"