Skip to content

Instantly share code, notes, and snippets.

@gilesc
Created July 25, 2011 15:59
Show Gist options
  • Save gilesc/1104462 to your computer and use it in GitHub Desktop.
Save gilesc/1104462 to your computer and use it in GitHub Desktop.
Octopress deploy patch
--- a/Rakefile
+++ b/Rakefile
@@ -163,7 +163,7 @@ desc "deploy public directory to github pages"
task :push do
puts "## Deploying branch to Github Pages "
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
- system "cp -R #{public_dir}/ #{deploy_dir}"
+ system "cp -R #{public_dir}/* #{deploy_dir}"
puts "\n## copying #{public_dir} to #{deploy_dir}"
cd "#{deploy_dir}" do
system "git add ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment