Skip to content

Commit

Permalink
added a pow-compatible Rack configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
nathos committed Jun 24, 2013
1 parent 8f7123d commit cd12ce8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require "rubygems"
require "middleman-core/load_paths"

Middleman.setup_load_paths

require "middleman-core"
require "middleman-core/preview_server"

module Middleman::PreviewServer
def self.preview_in_rack
@options = { }
@app = new_app
start_file_watcher
end
end

Middleman::PreviewServer.preview_in_rack
run Middleman::PreviewServer.app.class.to_rack_app

0 comments on commit cd12ce8

Please sign in to comment.