Post build hook

65 views
Skip to first unread message

Joe Gaudet

unread,
Jun 9, 2011, 1:27:38 PM6/9/11
to middleman-users
Hey,

Any way we might be able to toss in a post build hook that would allow
for deployment (sftp of the build folder to a target or something)?

.joe

Thomas Reynolds

unread,
Jun 9, 2011, 1:46:39 PM6/9/11
to middlem...@googlegroups.com
Yes, 

require "middleman/builder" 

in you config file and add this block:

Middleman::Builder.after_run "name_of_your_process_for_debugging" do
  # Code for after run
end

-Thomas
Reply all
Reply to author
Forward
0 new messages