aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-09-25 22:50:56 -0700
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-09-25 22:50:56 -0700
commit8c5ce51b3ffc29f1a986a777feb465ac83ad9bba (patch)
treefabb157c321900c6fe3bb3c1bc41156df934dc02
parentd1e5c45e79cce76d12c854677848cd29b56f79a4 (diff)
parentaf1f2af48f4e6cc49b9c619654e5038f2353955f (diff)
downloadmy_new_personal_website-8c5ce51b3ffc29f1a986a777feb465ac83ad9bba.tar.xz
my_new_personal_website-8c5ce51b3ffc29f1a986a777feb465ac83ad9bba.zip
Merge pull request #178 from matrixagent/patch-1
Changed rsync deployment so the ssh port is configurable as well.
Diffstat (limited to '')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index eb91e37f..20c618e0 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"