Register reload hooks in Server#process (#6605)

Merge pull request 6605
This commit is contained in:
ashmaroli 2017-12-15 13:40:22 +05:30 committed by jekyllbot
parent 3b9ed96c30
commit 1082a39417
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,6 @@ module Jekyll
# a reactor created by a previous test when our test might not # a reactor created by a previous test when our test might not
@reload_reactor = nil @reload_reactor = nil
register_reload_hooks(opts) if opts["livereload"]
config = configuration_from_options(opts) config = configuration_from_options(opts)
if Jekyll.env == "development" if Jekyll.env == "development"
config["url"] = default_url(config) config["url"] = default_url(config)
@ -99,6 +98,7 @@ module Jekyll
def process(opts) def process(opts)
opts = configuration_from_options(opts) opts = configuration_from_options(opts)
destination = opts["destination"] destination = opts["destination"]
register_reload_hooks(opts) if opts["livereload"]
setup(destination) setup(destination)
start_up_webrick(opts, destination) start_up_webrick(opts, destination)