From e1c44aa9d3672a97411a2774561a35c0cecc0b03 Mon Sep 17 00:00:00 2001 From: Tom Vaughan Date: Tue, 23 Jul 2013 21:43:15 -0400 Subject: [PATCH] Call `middleman build` to work-around a problem in middleman. --- lib/middleman-deploy/commands.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/middleman-deploy/commands.rb b/lib/middleman-deploy/commands.rb index 9b17a83..850c28a 100644 --- a/lib/middleman-deploy/commands.rb +++ b/lib/middleman-deploy/commands.rb @@ -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