inspec/www/config.ru
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

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