Skip to content

Instantly share code, notes, and snippets.

@ennorehling
Created February 10, 2014 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ennorehling/8912543 to your computer and use it in GitHub Desktop.
Save ennorehling/8912543 to your computer and use it in GitHub Desktop.
diff --git a/Rakefile b/Rakefile
index ae0765a..77bdbbc 100644
--- a/Rakefile
+++ b/Rakefile
@@ -9,7 +9,8 @@ ssh_port = "22"
document_root = "~/website.com/"
rsync_delete = false
rsync_args = "" # Any extra arguments to pass to rsync
-deploy_default = "rsync"
+weex_args = "-s blog"
+deploy_default = "weex"
# This will be configured for you when you run config_deploy
deploy_branch = "gh-pages"
@@ -234,6 +235,12 @@ task :copydot, :source, :dest do |t, args|
end
end
+desc "Deploy website via weex"
+task :weex do
+ puts "## Deploying website via weex"
+ ok_failed system("weex #{weex_args}")
+end
+
desc "Deploy website via rsync"
task :rsync do
exclude = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment