Skip to content

Instantly share code, notes, and snippets.

View dhfromkorea's full-sized avatar

dh dhfromkorea

View GitHub Profile
@dhfromkorea
dhfromkorea / fix_drafts_deployment.rb
Created July 6, 2019 05:42
A quick fix for Octopress 2 that prevents drafts from being deployed. Preview still possible.
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)
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgn+cKNDjDeEyrkcOlPC8qsMqzn6sdMRm02EctZ3c/TDcKp3BheWxvYWTESpcCB8QgRqSCJYNPNZpSJdLrBtTxP+Ecsg3gRfV2QcAVT4EA+jrEIC51ewx6VipNATlRp7hXSkJBVkObe7jOqFNep6HwZIaAAgHCo3NpZ8RA0JiwMzC/KJmh0kZ6EKAhWwVNV3nVaViklUNZOHj7ER4//G/CwEIJDNc+rzw8CSe5Bfyu5Wa9Y1kiVJz2wQUBB6hzaWdfdHlwZSCkaGFzaIKkdHlwZQildmFsdWXEIO7cxNT/Bgx3n9SCKx1vVAV49PWWc48WLP90rMI/jI5Xo3RhZ80CAqd2ZXJzaW9uAQ==
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.