mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Added instruction regarding management of _deploy/ for GitHub pages users. Removed preview mode check from deploy script
This commit is contained in:
parent
e334e832de
commit
c7d74c0d82
8
Rakefile
8
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user