Call `middleman build` to work-around a problem in middleman.

master
Tom Vaughan 2013-07-23 21:43:15 -04:00
parent 60dc1fee0e
commit e1c44aa9d3
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ module Middleman
end
if build_before
# http://forum.middlemanapp.com/t/problem-with-the-build-task-in-an-extension
builder = ::Middleman::Cli::Build.new(args=[], options={:instrument=>false})
builder.build
run("middleman build") || exit(1)
end
send("deploy_#{self.deploy_options.method}")
end