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 )
This commit is contained in:
parent
c26e5c3be9
commit
a4177e1471
1 changed files with 2 additions and 1 deletions
3
Rakefile
3
Rakefile
|
@ -5,6 +5,7 @@ require "stringex"
|
||||||
## -- Rsync Deploy config -- ##
|
## -- Rsync Deploy config -- ##
|
||||||
# Be sure your public key is listed in your server's ~/.ssh/authorized_keys file
|
# Be sure your public key is listed in your server's ~/.ssh/authorized_keys file
|
||||||
ssh_user = "user@domain.com"
|
ssh_user = "user@domain.com"
|
||||||
|
ssh_port = "22"
|
||||||
document_root = "~/website.com/"
|
document_root = "~/website.com/"
|
||||||
deploy_default = "rsync"
|
deploy_default = "rsync"
|
||||||
|
|
||||||
|
@ -218,7 +219,7 @@ end
|
||||||
desc "Deploy website via rsync"
|
desc "Deploy website via rsync"
|
||||||
task :rsync do
|
task :rsync do
|
||||||
puts "## Deploying website via Rsync"
|
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
|
end
|
||||||
|
|
||||||
desc "deploy public directory to github pages"
|
desc "deploy public directory to github pages"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue