Created
July 25, 2011 15:59
-
-
Save gilesc/1104462 to your computer and use it in GitHub Desktop.
Octopress deploy patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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