work-around a problem with running build in an extension
This commit is contained in:
parent
3b9b8093d3
commit
f0a60edf29
|
@ -37,7 +37,11 @@ module Middleman
|
||||||
else
|
else
|
||||||
build_before = self.deploy_options.build_before
|
build_before = self.deploy_options.build_before
|
||||||
end
|
end
|
||||||
Middleman::Cli::Build.new.build if build_before
|
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
|
||||||
|
end
|
||||||
send("deploy_#{self.deploy_options.method}")
|
send("deploy_#{self.deploy_options.method}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue