mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-17 14:45:01 -05:00
Merge pull request #178 from matrixagent/patch-1
Changed rsync deployment so the ssh port is configurable as well.
This commit is contained in:
commit
8c5ce51b3f
3
Rakefile
3
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"
|
||||
|
Loading…
Reference in New Issue
Block a user