diff options
author | Manu <github@matrixagents.org> | 2011-09-26 00:13:42 +0300 |
---|---|---|
committer | Manu <github@matrixagents.org> | 2011-09-26 00:13:42 +0300 |
commit | a4177e1471a649c51ddb6def3aa6be0352056d4a (patch) | |
tree | 69c287285513c0d5ed7988cd6838cffcfd5bd29f /Rakefile | |
parent | c26e5c3be9ee717caae34a280ef5f38e98a1a322 (diff) | |
download | my_new_personal_website-a4177e1471a649c51ddb6def3aa6be0352056d4a.tar.xz my_new_personal_website-a4177e1471a649c51ddb6def3aa6be0352056d4a.zip |
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 )
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |