1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/bin/mm-build

16 lines
367 B
Text
Raw Normal View History

#!/usr/bin/env ruby
ENV['MM_ENV'] = "build"
# Require app
require File.join(File.dirname(__FILE__), "..", "lib", "middleman")
require 'middleman/builder'
2010-10-20 12:28:57 -04:00
# Initialize server once so features are loaded
Middleman::Server.new
# Middleman::Server.init!
Middleman::Builder.init!
2010-10-20 12:28:57 -04:00
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))