use webrick, remove thin/kirk requirements
This commit is contained in:
parent
6c5d75aca9
commit
a139b4cae9
3 changed files with 8 additions and 22 deletions
|
@ -66,20 +66,8 @@ if File.exists?(old_views) || File.exists?(old_public)
|
|||
end
|
||||
|
||||
Middleman::Server.root = @current_path
|
||||
app = Middleman::Server.new
|
||||
options[:app] = Middleman::Server.new
|
||||
# options[:server] = 'webrick'
|
||||
|
||||
# TODO: Remove this
|
||||
require 'rubygems'
|
||||
|
||||
unless defined?(JRUBY_VERSION)
|
||||
require 'thin'
|
||||
handler = Rack::Handler::Thin
|
||||
else
|
||||
require 'kirk'
|
||||
require 'rack/handler/kirk'
|
||||
handler = Rack::Handler::Kirk
|
||||
end
|
||||
|
||||
handler.run app, options do |inst|
|
||||
puts "== The Middleman is standing watch on port #{options[:Port]}"
|
||||
end
|
||||
puts "== The Middleman is standing watch on port #{options[:Port]}"
|
||||
Rack::Server.new(options).start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue