From 0d2af786930ceeefee7ddbe0c475d9d54b9285f5 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sun, 20 May 2012 17:27:18 -0500 Subject: [PATCH] Added instruction regarding management of _deploy/ for GitHub pages users. Removed preview mode check from deploy script --- Rakefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 4b3e66c..6a00aaa 100644 --- a/Rakefile +++ b/Rakefile @@ -215,12 +215,6 @@ end desc "Default deploy task" task :deploy do - # Check if preview posts exist, which should not be published - if File.exists?(".preview-mode") - puts "## Found posts in preview mode, regenerating files ..." - File.delete(".preview-mode") - Rake::Task[:generate].execute - end Rake::Task[:copydot].invoke(source_dir, public_dir) Rake::Task["#{deploy_default}"].execute end @@ -392,6 +386,8 @@ task :setup_github_pages, :repo do |t, args| puts "Finally, follow the guide at http://help.github.com/pages/#custom_domains for help pointing your domain to Github Pages" end puts "Deploy to #{repo_url} with `rake deploy`" + puts "Note: generated content is copied into _deploy/ which is not in version control." + puts "If starting with a fresh clone of this project you should re-run setup_github_pages." puts "========================================================" end