Skip to content

Commit cddf335

Browse files
committed
added livereload call to server startup
1 parent 0c5e7fa commit cddf335

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/jekyll/commands/serve.rb

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ module Commands
33
class Serve < Command
44
class << self
55
def start_up_webrick(opts, destination)
6+
if opts["livereload"]
7+
@reload_reactor.start(opts)
8+
end
9+
610
server = WEBrick::HTTPServer.new(webrick_opts(opts)).tap { |o| o.unmount("") }
711
server.mount(opts["baseurl"], Servlet, destination, file_handler_opts)
812

0 commit comments

Comments
 (0)