19 lines
407 B
Ruby
Executable file
19 lines
407 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
require 'middleman-core/profiling'
|
|
if ARGV.include? '--profile'
|
|
Middleman::Profiling.profiler = Middleman::Profiling::RubyProfProfiler.new
|
|
end
|
|
Middleman::Profiling.start
|
|
|
|
require "middleman-core/load_paths"
|
|
Middleman.setup_load_paths
|
|
|
|
require "middleman-core/cli"
|
|
|
|
# Change directory to the root
|
|
Dir.chdir(ENV["MM_ROOT"]) if ENV["MM_ROOT"]
|
|
|
|
# Start the CLI
|
|
Middleman::Cli::Base.start
|