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