mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-04 11:45:03 -05:00
Register reload hooks in Server#process (#6605)
Merge pull request 6605
This commit is contained in:
@@ -86,7 +86,6 @@ module Jekyll
|
||||
# a reactor created by a previous test when our test might not
|
||||
@reload_reactor = nil
|
||||
|
||||
register_reload_hooks(opts) if opts["livereload"]
|
||||
config = configuration_from_options(opts)
|
||||
if Jekyll.env == "development"
|
||||
config["url"] = default_url(config)
|
||||
@@ -99,6 +98,7 @@ module Jekyll
|
||||
def process(opts)
|
||||
opts = configuration_from_options(opts)
|
||||
destination = opts["destination"]
|
||||
register_reload_hooks(opts) if opts["livereload"]
|
||||
setup(destination)
|
||||
|
||||
start_up_webrick(opts, destination)
|
||||
|
||||
Reference in New Issue
Block a user