mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
a5309ea392
Signed-off-by: Ryan Davis <zenspider@chef.io>
13 lines
326 B
Ruby
13 lines
326 B
Ruby
require "middleman-core/load_paths"
|
|
::Middleman.setup_load_paths
|
|
|
|
require "middleman-core"
|
|
require "middleman-core/rack"
|
|
|
|
require "fileutils"
|
|
FileUtils.mkdir("log") unless File.exist?("log")
|
|
::Middleman::Logger.singleton("log/#{ENV['RACK_ENV']}.log")
|
|
|
|
app = ::Middleman::Application.new
|
|
|
|
run ::Middleman::Rack.new(app).to_app
|