inspec/www/config.ru
Miah Johnson a4f4fe5231 chefstyle -a; https://github.com/chef/chefstyle/pull/74
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-07-08 17:22:50 -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