How to Deploy a Blog Made by Octopress to Heteml Nov 15th, 2011 | Comments diff --git a/Rakefile b/Rakefile index 7d7f6d8..41868ab 100644 --- a/Rakefile +++ b/Rakefile @@ -4,10 +4,10 @@ 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" +ssh_user = "xxx@usersXX.heteml.jp" +ssh_port = "2222" +document_root = "~/web/octopress" +deploy_default = "scp" # This will be configured for you when you run config_deploy deploy_branch = "gh-pages" @@ -224,6 +224,12 @@ task :rsync do ok_failed system("rsync -avze 'ssh -p #{ssh_port}' --delete #{public_dir}/ #{ssh_user}:#{document_root}") end +desc "Deploy website via scp" +task :scp do + puts "## Deploying website via scp" + ok_failed system("scp -r -P #{ssh_port} #{public_dir}/* #{ssh_user}:#{document_root}") +end + desc "deploy public directory to github pages" multitask :push do puts "## Deploying branch to Github Pages "