We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c5e7fa commit cddf335Copy full SHA for cddf335
lib/jekyll/commands/serve.rb
@@ -3,6 +3,10 @@ module Commands
3
class Serve < Command
4
class << self
5
def start_up_webrick(opts, destination)
6
+ if opts["livereload"]
7
+ @reload_reactor.start(opts)
8
+ end
9
+
10
server = WEBrick::HTTPServer.new(webrick_opts(opts)).tap { |o| o.unmount("") }
11
server.mount(opts["baseurl"], Servlet, destination, file_handler_opts)
12
0 commit comments