Skip to content

Instantly share code, notes, and snippets.

@mizzy
Created November 15, 2011 14:21
Show Gist options
  • Select an option

  • Save mizzy/1367192 to your computer and use it in GitHub Desktop.

Select an option

Save mizzy/1367192 to your computer and use it in GitHub Desktop.
Octopress on Heteml
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 "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment